Skip to content
/ fuck Public

A tiny program for uncensoring russian texts

Notifications You must be signed in to change notification settings

zeionara/fuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fuck

Fuck: an ultimate censorship killer - a tiny program for uncensoring russian texts

Usage

To uncensor a particular text use command like this:

python -m fuck uncensor 'Нах**я до%@я нах%ярил??? Расх*%яривай нах@й - не дох*ярим. Них*я, не дох@я дох%ярим - пох*ярили'

The command will emit an uncensored text:

Нахуя дохуя нахуярил??? Расхуяривай нахуй - не дохуярим. Нихуя, не дохуя дохуярим - похуярили

To get the same result in a python command see the example:

from fuck import ProfanityHandler

text, censored, unhandled_matches = ProfanityHandler(
    path = 'assets/profane-words.txt'
).uncensor(
    'Нах**я до%@я нах%ярил??? Расх*%яривай нах@й - не д0х*ярим. Них*я, не дох@я дох%ярим - пох*ярили'
)

print(text)
print(censored)
print(unhandled_matches)

The script generates the following output upon execution:

Нахуя дохуя нахуярил??? Расхуяривай нахуй - не д0х*ярим. Нихуя, не дохуя дохуярим - похуярили
True
['д0х*ярим']

To uncensor texts from a .tsv file with anecdotes using default settings run the following command:

python -m fuck stats

Installation

To install from pip:

pip install f-ck

To create environment and install all dependencies execute the following command:

conda env create -f environment.yml

About

A tiny program for uncensoring russian texts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published