Basic Profanity filter in Objective-C

Below is an Objective-C function which will return YES if there are no profane words in the input text string else it will return NO. You can use it to check if any profane words are entered by the user. -(BOOL)profaneWordsFilterInText:(NSString *)inText{ NSArray * listOfProfaneWords = @[@”word1″,  @”word2″,];                  NSError *error […]