phonetic 1.0.1 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +1 -1
- data/README.md +7 -0
- data/lib/phonetic.rb +1 -0
- data/lib/phonetic/core_ext/string/dm_soundex.rb +12 -0
- data/lib/phonetic/dm_soundex.rb +82 -0
- data/lib/phonetic/dm_soundex_map.rb +233 -0
- data/lib/phonetic/double_metaphone.rb +519 -569
- data/lib/phonetic/metaphone.rb +43 -69
- data/lib/phonetic/version.rb +1 -1
- data/spec/phonetic/core_ext/string/dm_soundex_spec.rb +9 -0
- data/spec/phonetic/dm_soundex_spec.rb +13 -0
- data/spec/support/dm_soundex_data.rb +259 -0
- data/spec/support/double_metaphone_data.rb +30 -0
- metadata +11 -2
@@ -6,6 +6,7 @@ module Phonetic
|
|
6
6
|
'accident' => ['AKST', 'AKST'],
|
7
7
|
'avvenente' => ['AFNN', 'AFNN'],
|
8
8
|
'Acker' => ['AKR', 'AKR'],
|
9
|
+
'Addams' => ['ATMS', 'ATMS'],
|
9
10
|
'Agnes' => ['AKNS', 'ANS'],
|
10
11
|
'Akkad' => ['AKT', 'AKT'],
|
11
12
|
'Alicia' => ['ALS', 'ALX'],
|
@@ -25,6 +26,7 @@ module Phonetic
|
|
25
26
|
'bellocchio' => ['PLX', 'PLX'],
|
26
27
|
'bertucci' => ['PRTX', 'PRTX'],
|
27
28
|
'biaggi' => ['PJ', 'PK'],
|
29
|
+
'bioggi' => ['PJ', 'PK'],
|
28
30
|
'breaux' => ['PR', 'PR'],
|
29
31
|
'braço' => ['PRS', 'PRS'],
|
30
32
|
'cabrillo' => ['KPRL', 'KPR'],
|
@@ -34,14 +36,23 @@ module Phonetic
|
|
34
36
|
'campbell' => ['KMPL', 'KMPL'],
|
35
37
|
'carlisle' => ['KRLL', 'KRLL'],
|
36
38
|
'carlysle' => ['KRLL', 'KRLL'],
|
39
|
+
'Chloride' => ['KLRT', 'KLRT'],
|
40
|
+
'changes' => ['XNJS', 'XNKS'],
|
41
|
+
'Character' => ['KRKT', 'KRKT'],
|
42
|
+
'Charisma' => ['KRSM', 'KRSM'],
|
37
43
|
'chemistry' => ['KMST', 'KMST'],
|
38
44
|
'cherry' => ['XR', 'XR'],
|
39
45
|
'chianti' => ['KNT', 'KNT'],
|
46
|
+
'chihor' => ['XHR','XHR'],
|
40
47
|
'chorus' => ['KRS', 'KRS'],
|
48
|
+
'Chymosin' => ['KMSN', 'KMSN'],
|
49
|
+
'Chynna' => ['XN', 'XN'],
|
41
50
|
'Cielo' => ['SL', 'XL'],
|
42
51
|
'Cioccolato' => ['SKLT', 'XKLT'],
|
52
|
+
'Columbus' => ['KLMP', 'KLMP'],
|
43
53
|
'cough' => ['KF', 'KF'],
|
44
54
|
'czerny' => ['SRN', 'XRN'],
|
55
|
+
'danger' => ['TNJR', 'TNKR'],
|
45
56
|
'dumb' => ['TM', 'TM'],
|
46
57
|
'edgar' => ['ATKR', 'ATKR'],
|
47
58
|
'edge' => ['AJ', 'AJ'],
|
@@ -50,12 +61,14 @@ module Phonetic
|
|
50
61
|
'filipowicz' => ['FLPT', 'FLPF'],
|
51
62
|
'focaccia' => ['FKX', 'FKX'],
|
52
63
|
'gallegos' => ['KLKS', 'KKS'],
|
64
|
+
'gear' => ['JR', 'KR'],
|
53
65
|
'Gebal' => ['KPL', 'JPL'],
|
54
66
|
'Gelatin' => ['KLTN', 'JLTN'],
|
55
67
|
'Gepard' => ['KPRT', 'JPRT'],
|
56
68
|
'Gerald' => ['KRLT', 'JRLT'],
|
57
69
|
'Gesture' => ['KSTR', 'JSTR'],
|
58
70
|
'geyser' => ['KSR', 'JSR'],
|
71
|
+
'geisha' => ['KX', 'JX'],
|
59
72
|
'ghiradelli' => ['JRTL', 'JRTL'],
|
60
73
|
'ghislane' => ['JLN', 'JLN'],
|
61
74
|
'ghost' => ['KST', 'KST'],
|
@@ -63,8 +76,10 @@ module Phonetic
|
|
63
76
|
'Gilbert' => ['KLPR', 'JLPR'],
|
64
77
|
'ginger' => ['KNKR', 'JNJR'],
|
65
78
|
'Giethoorn' => ['K0RN', 'JTRN'],
|
79
|
+
'Gneiss' => ['NS', 'NS'],
|
66
80
|
'gough' => ['KF', 'KF'],
|
67
81
|
'Grashof' => ['KRXF', 'KRXF'],
|
82
|
+
'gym' => ['KM', 'JM'],
|
68
83
|
'hochmeier' => ['HKMR', 'HKMR'],
|
69
84
|
'hugh' => ['H', 'H'],
|
70
85
|
'island' => ['ALNT', 'ALNT'],
|
@@ -73,14 +88,18 @@ module Phonetic
|
|
73
88
|
'Jacqueline' => ['JKLN', 'AKLN'],
|
74
89
|
'dejer' => ['TJR', 'TJR'],
|
75
90
|
'jose' => ['HS', 'HS'],
|
91
|
+
'Jose Villa' => ['HSFL', 'HSF'],
|
76
92
|
'joseph' => ['JSF', 'HSF'],
|
77
93
|
'Jugnot' => ['JNT', 'AKNT'],
|
78
94
|
'Katerine' => ['KTRN', 'KTRN'],
|
95
|
+
'Khia' => ['K', 'K'],
|
96
|
+
'Knight' => ['NT', 'NT'],
|
79
97
|
'laugh' => ['LF', 'LF'],
|
80
98
|
'Lawrence' => ['LRNS', 'LRNS'],
|
81
99
|
'Loretta' => ['LRT', 'LRT'],
|
82
100
|
'mac caffrey' => ['MKFR', 'MKFR'],
|
83
101
|
'mac gregor' => ['MKRK', 'MKRK'],
|
102
|
+
'macher' => ['MKR', 'MKR'],
|
84
103
|
'Maggie' => ['MJ', 'MK'],
|
85
104
|
'maña' => ['MN', 'MN'],
|
86
105
|
'McClellan' => ['MKLL', 'MKLL'],
|
@@ -91,25 +110,34 @@ module Phonetic
|
|
91
110
|
'Moosholzer' => ['MSLS', 'MSLS'],
|
92
111
|
'Mosheim' => ['MSM', 'MSM'],
|
93
112
|
'nation' => ['NXN', 'NXN'],
|
113
|
+
'numbers' => ['NMRS', 'NMRS'],
|
94
114
|
'orchestra' => ['ARKS', 'ARKS'],
|
95
115
|
'orchid' => ['ARKT', 'ARKT'],
|
96
116
|
'quest' => ['KST', 'KST'],
|
117
|
+
'Petrosian' => ['PTRS', 'PTRX'],
|
97
118
|
'pizza' => ['PS', 'PTS'],
|
119
|
+
'Pnina' => ['NN', 'NN'],
|
98
120
|
'Portia' => ['PRX', 'PRX'],
|
121
|
+
'Psionics' => ['SNKS', 'XNKS'],
|
99
122
|
'raspberry' => ['RSPR', 'RSPR'],
|
123
|
+
'ranger' => ['RNJR', 'RNKR'],
|
100
124
|
'resnais' => ['RSN', 'RSNS'],
|
101
125
|
'Rogge' => ['RK', 'RK'],
|
102
126
|
'rogier' => ['RJ', 'RJR'],
|
103
127
|
'rough' => ['RF', 'RF'],
|
104
128
|
'raj' => ['RJ', 'R'],
|
105
129
|
'san jacinto' => ['SNHS', 'SNHS'],
|
130
|
+
'Sevilla' => ['SFL', 'SF'],
|
106
131
|
'Scarlett' => ['SKRL', 'SKRL'],
|
132
|
+
'Schema' => ['SKM', 'SKM'],
|
107
133
|
'schenker' => ['XNKR', 'SKNK'],
|
108
134
|
'schermerhorn' => ['XRMR', 'SKRM'],
|
135
|
+
'Schedule' => ['SKTL', 'SKTL'],
|
109
136
|
'schmidt' => ['XMT', 'SMT'],
|
110
137
|
'schneider' => ['XNTR', 'SNTR'],
|
111
138
|
'school' => ['SKL', 'SKL'],
|
112
139
|
'schooner' => ['SKNR', 'SKNR'],
|
140
|
+
'Schuylkill' => ['SKLK', 'SKLK'],
|
113
141
|
'Sciorra' => ['SR', 'SR'],
|
114
142
|
'Sholman' => ['SLMN', 'SLMN'],
|
115
143
|
'Shoeka' => ['SK', 'SK'],
|
@@ -121,12 +149,14 @@ module Phonetic
|
|
121
149
|
'tagliaro' => ['TKLR', 'TLR'],
|
122
150
|
'thames' => ['TMS', 'TMS'],
|
123
151
|
'thomas' => ['TMS', 'TMS'],
|
152
|
+
'Thorne' => ['0RN', 'TRN'],
|
124
153
|
'thumb' => ['0M', 'TM'],
|
125
154
|
'tichner' => ['TXNR', 'TKNR'],
|
126
155
|
'tough' => ['TF', 'TF'],
|
127
156
|
'Uomo' => ['AM', 'AM'],
|
128
157
|
'van gelder' => ['FNKL', 'FNKL'],
|
129
158
|
'Vasserman' => ['FSRM', 'FSRM'],
|
159
|
+
'von Neumann' => ['FNNM', 'FNNM'],
|
130
160
|
'wachtler' => ['AKTL', 'FKTL'],
|
131
161
|
'Wasserman' => ['ASRM', 'FSRM'],
|
132
162
|
'weschsler' => ['AXSL', 'FXSL'],
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phonetic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- n7v
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -116,11 +116,14 @@ files:
|
|
116
116
|
- lib/phonetic/core_ext/string.rb
|
117
117
|
- lib/phonetic/core_ext/string/caverphone.rb
|
118
118
|
- lib/phonetic/core_ext/string/caverphone2.rb
|
119
|
+
- lib/phonetic/core_ext/string/dm_soundex.rb
|
119
120
|
- lib/phonetic/core_ext/string/double_metaphone.rb
|
120
121
|
- lib/phonetic/core_ext/string/metaphone.rb
|
121
122
|
- lib/phonetic/core_ext/string/nysiis.rb
|
122
123
|
- lib/phonetic/core_ext/string/refined_soundex.rb
|
123
124
|
- lib/phonetic/core_ext/string/soundex.rb
|
125
|
+
- lib/phonetic/dm_soundex.rb
|
126
|
+
- lib/phonetic/dm_soundex_map.rb
|
124
127
|
- lib/phonetic/double_metaphone.rb
|
125
128
|
- lib/phonetic/metaphone.rb
|
126
129
|
- lib/phonetic/metaphone2.rb
|
@@ -134,11 +137,13 @@ files:
|
|
134
137
|
- spec/phonetic/caverphone_spec.rb
|
135
138
|
- spec/phonetic/core_ext/string/caverphone2_spec.rb
|
136
139
|
- spec/phonetic/core_ext/string/caverphone_spec.rb
|
140
|
+
- spec/phonetic/core_ext/string/dm_soundex_spec.rb
|
137
141
|
- spec/phonetic/core_ext/string/double_metaphone_spec.rb
|
138
142
|
- spec/phonetic/core_ext/string/metaphone_spec.rb
|
139
143
|
- spec/phonetic/core_ext/string/nysiis_spec.rb
|
140
144
|
- spec/phonetic/core_ext/string/refined_soundex_spec.rb
|
141
145
|
- spec/phonetic/core_ext/string/soundex_spec.rb
|
146
|
+
- spec/phonetic/dm_soundex_spec.rb
|
142
147
|
- spec/phonetic/double_metaphone_spec.rb
|
143
148
|
- spec/phonetic/metaphone2_spec.rb
|
144
149
|
- spec/phonetic/metaphone_spec.rb
|
@@ -146,6 +151,7 @@ files:
|
|
146
151
|
- spec/phonetic/refined_soundex_spec.rb
|
147
152
|
- spec/phonetic/soundex_spec.rb
|
148
153
|
- spec/spec_helper.rb
|
154
|
+
- spec/support/dm_soundex_data.rb
|
149
155
|
- spec/support/double_metaphone_data.rb
|
150
156
|
- spec/support/nysiis_data.rb
|
151
157
|
homepage: http://github.com/n7v/phonetic
|
@@ -178,11 +184,13 @@ test_files:
|
|
178
184
|
- spec/phonetic/caverphone_spec.rb
|
179
185
|
- spec/phonetic/core_ext/string/caverphone2_spec.rb
|
180
186
|
- spec/phonetic/core_ext/string/caverphone_spec.rb
|
187
|
+
- spec/phonetic/core_ext/string/dm_soundex_spec.rb
|
181
188
|
- spec/phonetic/core_ext/string/double_metaphone_spec.rb
|
182
189
|
- spec/phonetic/core_ext/string/metaphone_spec.rb
|
183
190
|
- spec/phonetic/core_ext/string/nysiis_spec.rb
|
184
191
|
- spec/phonetic/core_ext/string/refined_soundex_spec.rb
|
185
192
|
- spec/phonetic/core_ext/string/soundex_spec.rb
|
193
|
+
- spec/phonetic/dm_soundex_spec.rb
|
186
194
|
- spec/phonetic/double_metaphone_spec.rb
|
187
195
|
- spec/phonetic/metaphone2_spec.rb
|
188
196
|
- spec/phonetic/metaphone_spec.rb
|
@@ -190,6 +198,7 @@ test_files:
|
|
190
198
|
- spec/phonetic/refined_soundex_spec.rb
|
191
199
|
- spec/phonetic/soundex_spec.rb
|
192
200
|
- spec/spec_helper.rb
|
201
|
+
- spec/support/dm_soundex_data.rb
|
193
202
|
- spec/support/double_metaphone_data.rb
|
194
203
|
- spec/support/nysiis_data.rb
|
195
204
|
has_rdoc:
|