/ht

simple example of a string to word parser

Primary LanguageRuby

HT

  • a simple string to word parser with a simplistic dictionary
  • takes a string and parses it into an array of words
  • uses the whole string

Valid input

  • 'iamhappy' parses to ['i', 'am', 'happy']
  • 'anto' parses to ['an', 'to'], not ['ant']