animalType: Analyzes text based on average word length and returns an...

Description Usage Arguments Value Examples

View source: R/animalType.R

Description

Analyzes text based on average word length and returns an animal picture representing language complexity.

Usage

1
animalType(species, text)

Arguments

species

A string representing species, must be one of "Duck", "Monkey", "Giraffe", "Whale"

text

A string of characters to be analyzed

Value

A jpeg of an animal

Examples

1
2
3
4
5
6
text <- "I like pie"
animal_rep <- animalType(animalClassifier(text), text)

text <- "Pie's abundantly awesome"
species <- "Duck"
animal_rep <- animalType(species, text)

UBC-MDS/Ranimalsgonewild documentation built on Feb. 12, 2022, 7:48 a.m.