Skip to main content

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

Release files for f-ck 0.0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for f-ck 0.0.12
File Size Uploaded
f-ck-0.0.12.tar.gz 6.0 kB Details

Release files / f-ck-0.0.12.tar.gz

Download URL f-ck-0.0.12.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
85fa3086c99be34cc4a6902dbf4a6224b1fd50a6d37d2f275e696e94c63b8d99
BLAKE2b-256 checksum
How to use checksums
ac9ee6faebe6569a6f8749006d40fc1c53e6ed8d2ec30f753acf0515b7c611f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.12 This release

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page