def self.feed_word_solutions(translitered)
return true if @@sol.has_solutions(translitered)
word_solutions = Set.new
count = 0
segments = segment_word(translitered)
segments.each{|segmented_word|
if @@dict.has_prefix?(segmented_word.prefix)
if @@dict.has_stem?(segmented_word.stem)
if @@dict.has_suffix?(segmented_word.suffix)
@@dict.prefixes[segmented_word.prefix].each{|prefix|
@@dict.stems[segmented_word.stem].each {|stem|
if @@dict.prefixes_stems_compatible?(prefix.morphology ,stem.morphology )
@@dict.suffixes[segmented_word.suffix].each {|suffix|
if @@dict.prefixes_suffixes_compatible?(prefix.morphology , suffix.morphology)
if @@dict.stems_suffixes_compatible?(stem.morphology , suffix.morphology)
count = count + 1
word_solutions << Solution.new(@verbose , count , prefix , stem , suffix )
end
end
}
end
}
}
end
end
end
}
@@sol.add_solutions(translitered, word_solutions) unless word_solutions.empty?
return !word_solutions.empty?
end