class Gamefic::Scanner::Fuzzy


the keyword ‘pencil`.
of one of the entity’s keywords, e.g., ‘pen` is a fuzzy token match for
An entity will match a word in a fuzzy scan if it matches the beginning
Fuzzy token matching.

def match_word available, word

def match_word available, word
  available.select { |obj| obj.keywords.any? { |wrd| wrd.start_with?(word) } }
end