lib/text/metaphone.rb in text-1.2.3 vs lib/text/metaphone.rb in text-1.3.0
- old
+ new
@@ -43,11 +43,11 @@
[ /th/, '0' ],
[ /t?ch|sh/, 'X' ],
[ /c(?=ia)/, 'X' ],
[ /[st](?=i[ao])/, 'X' ],
[ /s?c(?=[iey])/, 'S' ],
- [ /[cq]/, 'K' ],
+ [ /(ck?|q)/, 'K' ],
[ /dg(?=[iey])/, 'J' ],
[ /d/, 'T' ],
[ /g(?=h[^aeiou])/, '' ],
[ /gn(ed)?/, 'N' ],
[ /([^g]|^)g(?=[iey])/,
@@ -92,6 +92,6 @@
end
extend self
end
-end
\ No newline at end of file
+end