Classify the input text as an animal based on the proportion of unique words

animalClassifier(text)

Arguments

text

String Character

Value

A character, the classified animal type

Examples

library(tm)
#> Loading required package: NLP
animalClassifier("I just caught a pikachu!")
#> [1] "Whale"