Module: Spellchecker::Dictionaries::HumanNames

Defined in:
lib/spellchecker/dictionaries/human_names.rb

Defined Under Namespace

Modules: FirstNames, LastNames

Class Method Summary collapse

Class Method Details

.include?(string) ⇒ Boolean

Parameters:

  • string (String)

Returns:

  • (Boolean)


59
60
61
62
63
# File 'lib/spellchecker/dictionaries/human_names.rb', line 59

def include?(string)
  return false unless string

  FirstNames.all.include?(string) || LastNames.all.include?(string)
end