Skip to content

Profanity filter written in Swift, with censoring extensions for String, NSString, NSMutableString and NSAttributedString

License

Notifications You must be signed in to change notification settings

ryanmaxwell/GoshDarnIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoshDarnIt

Profanity filter written in Swift, with censoring extensions for String, NSString, NSMutableString and NSAttributedString

##Usage

  • Return a clean version of a string by calling censored()
let insult = "Hey dick-nose"
let clean = insult.censored() // Hey ****-nose
  • Censor a mutable string in place by calling censor()
var insult = "Eat a bag of dicks."
insult.censor() 
print(insult) // Eat a bag of *****.

About

Profanity filter written in Swift, with censoring extensions for String, NSString, NSMutableString and NSAttributedString

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published