Skip to content

bkontonis/Profanity-Check-Using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Profanity Check Using Python

Description

This python sript reads a txt file and checks if there is a curse word in it.

In the current example one txt file is used (the 5_movie_quotes.txt). It contains a very characteristic quote from a movie and the movie title.

The python script reads the txt file and checks for any curse words. It returns True if the file contains a curse word, False otherwise.

In the specific txt file we have made a "typo" in purpose to test the python script. In line 7 the movie title was suposed to be "A Shot in the Dark" but with the typo it is "A Shit in the Dark". Let's see if the python script will catch it.

Install

This project requires Python 3.x and the following Python libraries installed:

About

Python Script that reads a text file and checks if there is any profanity in it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages