for each word
  common_prefix = common_prefix(word)
  current_suffix = word.slice(common_prefix)
