gitlabEdit

penWord 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.

chevron-rightAvailable functionshashtag

You can use the WordManager class that contains the following functions:

Function
Description

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

circle-info

The asynchronous version of the functions is provided for web applications and other apps that require async operations.

chevron-rightAvailable word flavorshashtag

You can also select one of the following flavors (WordDataType) of the word list:

Flavor
Description

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+)

circle-info

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.

chevron-rightAvailable functionshashtag

You can analyze and filter your sentence from profanities using these functions:

Function
Description

GetProfanities()

Gets all profanities found

FilterProfanities()

Filters all profanities found

chevron-rightMethods of analysishashtag

The profanity filter can analyze your sentences in four ways:

Method
Description

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 Scunthorpearrow-up-right (a townarrow-up-right in the UK) and Classicarrow-up-right.

Last updated