textTransformer

Module Contents

Functions

textTransformer(text)

This function modifies a block of text by replacing all nouns

textTransformer.textTransformer(text)

This function modifies a block of text by replacing all nouns with an animal.

text: str

text to be transformed.

Returns
str

a string containing the transformed text.

>>> text = "The silly chicken walked across the road"
>>> textTransformer(text)
"The silly duck walked across the duck"