yawc 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/yawc.rb +1 -670
  5. metadata +12 -12
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ff12033582388f6f58d93aa12e889f667794a4635f97ff8b0283705b5e246dd
4
- data.tar.gz: '09514fb3345fe2e9c87b605ab339ee975ac5a00771dfbb7c64c0566d8dd3fcd5'
3
+ metadata.gz: 3f92e62f0a0628843adf5389d37708f341003785330dd267f96cd390cfabf93f
4
+ data.tar.gz: 96ebf58979f7adfe91957ab50a3b8a2fce00be7fcfd16c4584cf5cc026d6585c
5
5
  SHA512:
6
- metadata.gz: ab9ae685cbe33da67ec5cedd02eea7e7b0d1c9dd3e989affe26b02be0dc12a4bcb5cad5eb7aee7f4e7632ed7f521c4d3e98b121733c9300fb48598a5c2cf4b10
7
- data.tar.gz: 5032e82ea749765f7529f3797ff5290a6eb9dc098a2c67626e2dd2853eadc24b389875d3342dd244ceba9dbb4010ba6c6359dc945658c4217250e8ecbc00cbf6
6
+ metadata.gz: ab7e93358e14a1f7962c4ac7a160e881139000becd35e0c0acce42766199bc126ade9ab7a3a10e37db5ebf331c94b355417f0fc33af9f72d296a628c26d2bf47
7
+ data.tar.gz: 946ed479857e47318ce20cf82ecb5de9a5ae5921c779923697738736fd3abebc8806f4146a1315fb7aa15abdab8c97dba37aefe307bbb78917376f5a249e0c17
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -15,674 +15,6 @@
15
15
  require 'wordsdotdat'
16
16
 
17
17
 
18
- STOPWORDS = "
19
- a
20
- able
21
- about
22
- above
23
- abst
24
- accordance
25
- according
26
- accordingly
27
- across
28
- act
29
- actually
30
- added
31
- adj
32
- affected
33
- affecting
34
- affects
35
- after
36
- afterwards
37
- again
38
- against
39
- ah
40
- all
41
- almost
42
- alone
43
- along
44
- already
45
- also
46
- although
47
- always
48
- am
49
- among
50
- amongst
51
- an
52
- and
53
- announce
54
- another
55
- any
56
- anybody
57
- anyhow
58
- anymore
59
- anyone
60
- anything
61
- anyway
62
- anyways
63
- anywhere
64
- apparently
65
- approximately
66
- are
67
- aren
68
- arent
69
- arise
70
- around
71
- as
72
- aside
73
- ask
74
- asking
75
- at
76
- auth
77
- available
78
- away
79
- awfully
80
- b
81
- back
82
- be
83
- became
84
- because
85
- become
86
- becomes
87
- becoming
88
- been
89
- before
90
- beforehand
91
- begin
92
- beginning
93
- beginnings
94
- begins
95
- behind
96
- being
97
- believe
98
- below
99
- beside
100
- besides
101
- between
102
- beyond
103
- biol
104
- both
105
- brief
106
- briefly
107
- but
108
- by
109
- c
110
- ca
111
- came
112
- can
113
- cannot
114
- can't
115
- cause
116
- causes
117
- certain
118
- certainly
119
- co
120
- com
121
- come
122
- comes
123
- contain
124
- containing
125
- contains
126
- could
127
- couldnt
128
- d
129
- date
130
- did
131
- didn't
132
- different
133
- do
134
- does
135
- doesn't
136
- doing
137
- done
138
- don't
139
- down
140
- downwards
141
- due
142
- during
143
- e
144
- each
145
- ed
146
- edu
147
- effect
148
- eg
149
- eight
150
- eighty
151
- either
152
- else
153
- elsewhere
154
- end
155
- ending
156
- enough
157
- especially
158
- et
159
- et-al
160
- etc
161
- even
162
- ever
163
- every
164
- everybody
165
- everyone
166
- everything
167
- everywhere
168
- ex
169
- except
170
- f
171
- far
172
- few
173
- ff
174
- fifth
175
- first
176
- five
177
- fix
178
- followed
179
- following
180
- follows
181
- for
182
- former
183
- formerly
184
- forth
185
- found
186
- four
187
- from
188
- further
189
- furthermore
190
- g
191
- gave
192
- get
193
- gets
194
- getting
195
- give
196
- given
197
- gives
198
- giving
199
- go
200
- goes
201
- gone
202
- got
203
- gotten
204
- h
205
- had
206
- happens
207
- hardly
208
- has
209
- hasn't
210
- have
211
- haven't
212
- having
213
- he
214
- hed
215
- hence
216
- her
217
- here
218
- hereafter
219
- hereby
220
- herein
221
- heres
222
- hereupon
223
- hers
224
- herself
225
- hes
226
- hi
227
- hid
228
- him
229
- himself
230
- his
231
- hither
232
- home
233
- how
234
- howbeit
235
- however
236
- hundred
237
- i
238
- id
239
- ie
240
- if
241
- i'll
242
- im
243
- immediate
244
- immediately
245
- importance
246
- important
247
- in
248
- inc
249
- indeed
250
- index
251
- information
252
- instead
253
- into
254
- invention
255
- inward
256
- is
257
- isn't
258
- it
259
- itd
260
- it'll
261
- its
262
- itself
263
- i've
264
- j
265
- just
266
- k
267
- keep
268
- keeps
269
- kept
270
- kg
271
- km
272
- know
273
- known
274
- knows
275
- l
276
- largely
277
- last
278
- lately
279
- later
280
- latter
281
- latterly
282
- least
283
- less
284
- lest
285
- let
286
- lets
287
- like
288
- liked
289
- likely
290
- line
291
- little
292
- 'll
293
- look
294
- looking
295
- looks
296
- ltd
297
- m
298
- made
299
- mainly
300
- make
301
- makes
302
- many
303
- may
304
- maybe
305
- me
306
- mean
307
- means
308
- meantime
309
- meanwhile
310
- merely
311
- mg
312
- might
313
- million
314
- miss
315
- ml
316
- more
317
- moreover
318
- most
319
- mostly
320
- mr
321
- mrs
322
- much
323
- mug
324
- must
325
- my
326
- myself
327
- n
328
- na
329
- name
330
- namely
331
- nay
332
- nd
333
- near
334
- nearly
335
- necessarily
336
- necessary
337
- need
338
- needs
339
- neither
340
- never
341
- nevertheless
342
- new
343
- next
344
- nine
345
- ninety
346
- no
347
- nobody
348
- non
349
- none
350
- nonetheless
351
- noone
352
- nor
353
- normally
354
- nos
355
- not
356
- noted
357
- nothing
358
- now
359
- nowhere
360
- o
361
- obtain
362
- obtained
363
- obviously
364
- of
365
- off
366
- often
367
- oh
368
- ok
369
- okay
370
- old
371
- omitted
372
- on
373
- once
374
- one
375
- ones
376
- only
377
- onto
378
- or
379
- ord
380
- other
381
- others
382
- otherwise
383
- ought
384
- our
385
- ours
386
- ourselves
387
- out
388
- outside
389
- over
390
- overall
391
- owing
392
- own
393
- p
394
- page
395
- pages
396
- part
397
- particular
398
- particularly
399
- past
400
- per
401
- perhaps
402
- placed
403
- please
404
- plus
405
- poorly
406
- possible
407
- possibly
408
- potentially
409
- pp
410
- predominantly
411
- present
412
- previously
413
- primarily
414
- probably
415
- promptly
416
- proud
417
- provides
418
- put
419
- q
420
- que
421
- quickly
422
- quite
423
- qv
424
- r
425
- ran
426
- rather
427
- rd
428
- re
429
- readily
430
- really
431
- recent
432
- recently
433
- ref
434
- refs
435
- regarding
436
- regardless
437
- regards
438
- related
439
- relatively
440
- research
441
- respectively
442
- resulted
443
- resulting
444
- results
445
- right
446
- run
447
- s
448
- said
449
- same
450
- saw
451
- say
452
- saying
453
- says
454
- sec
455
- section
456
- see
457
- seeing
458
- seem
459
- seemed
460
- seeming
461
- seems
462
- seen
463
- self
464
- selves
465
- sent
466
- seven
467
- several
468
- shall
469
- she
470
- shed
471
- she'll
472
- shes
473
- should
474
- shouldn't
475
- show
476
- showed
477
- shown
478
- showns
479
- shows
480
- significant
481
- significantly
482
- similar
483
- similarly
484
- since
485
- six
486
- slightly
487
- so
488
- some
489
- somebody
490
- somehow
491
- someone
492
- somethan
493
- something
494
- sometime
495
- sometimes
496
- somewhat
497
- somewhere
498
- soon
499
- sorry
500
- specifically
501
- specified
502
- specify
503
- specifying
504
- still
505
- stop
506
- strongly
507
- sub
508
- substantially
509
- successfully
510
- such
511
- sufficiently
512
- suggest
513
- sup
514
- sure t
515
- take
516
- taken
517
- taking
518
- tell
519
- tends
520
- th
521
- than
522
- thank
523
- thanks
524
- thanx
525
- that
526
- that'll
527
- thats
528
- that've
529
- the
530
- their
531
- theirs
532
- them
533
- themselves
534
- then
535
- thence
536
- there
537
- thereafter
538
- thereby
539
- thered
540
- therefore
541
- therein
542
- there'll
543
- thereof
544
- therere
545
- theres
546
- thereto
547
- thereupon
548
- there've
549
- these
550
- they
551
- theyd
552
- they'll
553
- theyre
554
- they've
555
- think
556
- this
557
- those
558
- thou
559
- though
560
- thoughh
561
- thousand
562
- throug
563
- through
564
- throughout
565
- thru
566
- thus
567
- til
568
- tip
569
- to
570
- together
571
- too
572
- took
573
- toward
574
- towards
575
- tried
576
- tries
577
- truly
578
- try
579
- trying
580
- ts
581
- twice
582
- two
583
- u
584
- un
585
- under
586
- unfortunately
587
- unless
588
- unlike
589
- unlikely
590
- until
591
- unto
592
- up
593
- upon
594
- ups
595
- us
596
- use
597
- used
598
- useful
599
- usefully
600
- usefulness
601
- uses
602
- using
603
- usually
604
- v
605
- value
606
- various
607
- 've
608
- very
609
- via
610
- viz
611
- vol
612
- vols
613
- vs
614
- w
615
- want
616
- wants
617
- was
618
- wasnt
619
- way
620
- we
621
- wed
622
- welcome
623
- we'll
624
- went
625
- were
626
- werent
627
- we've
628
- what
629
- whatever
630
- what'll
631
- whats
632
- when
633
- whence
634
- whenever
635
- where
636
- whereafter
637
- whereas
638
- whereby
639
- wherein
640
- wheres
641
- whereupon
642
- wherever
643
- whether
644
- which
645
- while
646
- whim
647
- whither
648
- who
649
- whod
650
- whoever
651
- whole
652
- who'll
653
- whom
654
- whomever
655
- whos
656
- whose
657
- why
658
- widely
659
- willing
660
- wish
661
- with
662
- within
663
- without
664
- wont
665
- words
666
- world
667
- would
668
- wouldnt
669
- www
670
- x
671
- y
672
- yes
673
- yet
674
- you
675
- youd
676
- you'll
677
- your
678
- youre
679
- yours
680
- yourself
681
- yourselves
682
- you've
683
- z
684
- zero
685
- "
686
18
 
687
19
  class Yawc
688
20
 
@@ -694,8 +26,7 @@ class Yawc
694
26
 
695
27
  def initialize(s, level: 2)
696
28
 
697
-
698
- @stopwords = STOPWORDS.strip.lines.map {|x| x.chomp}
29
+ @stopwords = WordsDotDat.stopwords
699
30
 
700
31
  a = case level
701
32
  when 2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yawc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,28 +35,28 @@ cert_chain:
35
35
  Rm36O3mGfms74RMu+aJDblAxhrNNyKrGOdufnYQSQ8lq/Q8hnp98IIat0Dy5vMv6
36
36
  zQC+ExzFRgU8HDVMYKWl/aLh
37
37
  -----END CERTIFICATE-----
38
- date: 2020-07-28 00:00:00.000000000 Z
38
+ date: 2020-08-03 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: wordsdotdat
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '0.1'
47
44
  - - ">="
48
45
  - !ruby/object:Gem::Version
49
- version: 0.1.1
46
+ version: 0.2.0
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.2'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '0.1'
57
54
  - - ">="
58
55
  - !ruby/object:Gem::Version
59
- version: 0.1.1
56
+ version: 0.2.0
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.2'
60
60
  description:
61
61
  email: james@jamesrobertson.eu
62
62
  executables: []
@@ -86,6 +86,6 @@ requirements: []
86
86
  rubygems_version: 3.0.3
87
87
  signing_key:
88
88
  specification_version: 4
89
- summary: Yet Another Word Counter (YAWC) makes it convenient to count the number
90
- of words in a string and return the result as a hash object.
89
+ summary: Yet Another Word Counter (YAWC) makes it convenient to count the number of
90
+ words in a string and return the result as a hash object.
91
91
  test_files: []
metadata.gz.sig CHANGED
Binary file