UNPKG

slurchecker

Version:

slur checker

5 lines (3 loc) 412 B
two functions included - slurs() and rephrase() the slur take a message and an optional list param. This list param is optional incase you want to add your own words you deem as a slur. We have the basics. the function returns true if it detects a slur and flase if not. returns string. the rephrase function takes an optonal list as well just in case you want to randomly return somethiing from your own list.