lib/taxamatch_rb/phonetizer.rb in dimus-taxamatch_rb-0.5.1 vs lib/taxamatch_rb/phonetizer.rb in dimus-taxamatch_rb-0.5.2
- old
+ new
@@ -1,9 +1,13 @@
# encoding: UTF-8
module Taxamatch
- class Phonetizer
-
+ module Phonetizer
+
+ def self.phonetize(a_word, normalize_ending = false)
+ self.near_match(a_word, normalize_ending)
+ end
+
def self.near_match(a_word, normalize_ending = false)
a_word = a_word.strip rescue ''
return '' if a_word == ''
a_word = Taxamatch::Normalizer.normalize a_word
case a_word
\ No newline at end of file