Toy k-nearest neighbors classifier of words by part of speech based on word length and position in sentence.