Word Management
Select a random word!
Word management is another feature of Textify that manages a list of words and generates a random set of words.
Usage
You can use the WordManager class found in the Textify.Data.Words namespace.
Available functions
You can use the WordManager class that contains the following functions:
InitializeWords()
Initializes the whole group of words
GetWords()
Gets a random set of words
GetRandomWord()
Gets a random word
GetRandomWordConditional()
Gets a random word conditionally
The asynchronous version of the functions is provided for web applications and other apps that require async operations.
Available word flavors
You can also select one of the following flavors (WordDataType) of the word list:
Words
Word list
WordsFull
Word list, including alphanumeric characters
WordsDirty
Word list, including offensive words (18+)
WordsDirtyFull
Word list, including offensive words (18+) and alphanumeric characters
BadWords
Offensive words list (18+) for bad word filtering
CommonWords
Common word list
CommonWordsDirty
Common word list, including offensive words (18+)
The last three word flavors contains offensive words that may not be suitable for users and developers, so it's best not to use them unless you have a reason to, such as swearing filters that Textify provides. Considering this point, we've decided to move the words list to its own flavor, WordsDirty, and clean all possible offensive words in the Words flavor.
Profanity filter
Textify provides a profanity filter that lets you sanitize your sentences from any possible profanity. You can find it under the ProfanityManager class in the Textify.Data.Words.Profanity namespace.
Available functions
You can analyze and filter your sentence from profanities using these functions:
GetProfanities()
Gets all profanities found
FilterProfanities()
Filters all profanities found
Methods of analysis
The profanity filter can analyze your sentences in four ways:
Thorough
Thorough searching. May not find swearing embedded in two or more words.
Shallow
Shallow searching. May not find swearing embedded in two or more words and/or separated by whitespace.
Mitigated
Mitigated partial searching. May not find swearing that has its characters separated by whitespace.
Partial
Partial searching. May cause legitimate words to be found, such as Scunthorpe (a town in the UK) and Classic.
Last updated