Displaying 1 result from an estimated 1 matches for "metaphoneanalyzer".
2006 Nov 25
5
Metaphone analysis
...version = :double)
@input = token_stream
@version = version
end
def next
t = @input.next
return nil if t.nil?
t.text = @version.eql?(:double) ?
Text::Metaphone.double_metaphone(t.text) :
Text::Metaphone.metaphone(t.text)
end
end
end
end
Second I created a MetaphoneAnalyzer class that would use the MetaphoneFilter
created above. The MetaphoneAnalyzer also makes use of the StemFilter so that
words like "eat" and "eating" both equal to "eat".
require ''ferret''
# TODO write tests
module Curtis
module Analysis
class Meta...