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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| f-ck-0.0.12.tar.gz | 6.0 kB | Without provenance | Details for f-ck-0.0.12.tar.gz |
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
|
Security for f-ck 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.