rudge 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8ed66b8eeec5d42fc40a8dd59567508795bd056
4
- data.tar.gz: c4e51bd25dd55ddd1ea5821b853dfa7d8df7e6f1
3
+ metadata.gz: edb0b387c52111c285a56e7b82a53ac8633ae9c7
4
+ data.tar.gz: 80f1c6b8d41f115e59d299a9437dce9f7143e8aa
5
5
  SHA512:
6
- metadata.gz: 8e62a34ee8f52c7ce5a6762d97fb973c94dd9a68f26935546ec66f4db6479b506a718c8cbe2b3b5f19536a74888229f03e7f96374ac20f7cfd8c7dbf063fa6b3
7
- data.tar.gz: 4b7c58b69d7401a58c4e19339ac3c13866f80e46b7f9cd8dd9cd93438363da317a0a2fd2e1579a30b0ef6219f39c6457ca80ff2ca277745433678e8b99fc9637
6
+ metadata.gz: 1a76d44632d5a827bdc5e0690a9ae37559db4b70cb8eef074d8863e5f7d969746c72db2eaf75737e4cdbfb7e0b8097a90328f2f6811a04597ecbfbf2997041cf
7
+ data.tar.gz: b50d07dd26c9609112715f1832cc368d23dd9d5454f170d369da28f970bcb978001aba4ed3c4f2d668c9fd278ce2e0223953dd847cd489a8e3b1bcb9782ee307
data/lib/rudge.rb CHANGED
@@ -1,5 +1,6 @@
1
+ require 'rudge/abbreviations'
2
+
1
3
  class Rudge
2
- require 'rudge/abbreviations'
3
4
 
4
5
  # end of sentence marker
5
6
  EOS = "\001"
@@ -1,21 +1,21 @@
1
1
  class Rudge
2
2
  class Abbreviations
3
- TITLES = %w(jr, mr, mrs, ms, dr, prof, sr, sen, rep, rev, gov, atty,
4
- supt, det, rev, col, gen, lt, cmdr, adm, capt, sgt, cpl, maj)
3
+ TITLES = %w(jr mr mrs ms dr prof sr sen rep rev gov atty
4
+ supt det rev col gen lt cmdr adm capt sgt cpl maj)
5
5
 
6
- ENTITIES = %w(dept, univ, uni, assn, bros, inc, ltd, co, corp, plc)
6
+ ENTITIES = %w(dept univ uni assn bros inc ltd co corp plc)
7
7
 
8
- MONTHS = %w(jan, feb, mar, apr, may, jun, jul, aug, sep, sept, oct,
9
- nov, dec)
8
+ MONTHS = %w(jan feb mar apr may jun jul aug sep sept oct nov dec)
10
9
 
11
- DAYS = %w(mon, tue, wed, thu, fri, sat, sun)
10
+ DAYS = %w(mon tue wed thu fri sat sun)
12
11
 
13
- ADDRESSES = %w(ave, bld, blvd, cl, ct, cres, dr, rd, st)
12
+ ADDRESSES = %w(ave bld blvd cl ct cres dr rd st)
14
13
 
15
- MISC = %w(vs, etc, no, esp, cf)
14
+ MISC = %w(vs etc no esp cf)
16
15
 
17
16
  def self.list
18
- TITLES + ENTITIES + MONTHS + DAYS + ADDRESSES + MISC
17
+ list = TITLES + ENTITIES + MONTHS + DAYS + ADDRESSES + MISC
18
+ list = list + list.map { |a| a.capitalize}
19
19
  end
20
20
 
21
21
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rudge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bruno coelho