https://github.com/zeionara/fuck
A tiny program for uncensoring russian texts
https://github.com/zeionara/fuck
Last synced: 3 months ago
JSON representation
A tiny program for uncensoring russian texts
- Host: GitHub
- URL: https://github.com/zeionara/fuck
- Owner: zeionara
- Created: 2023-10-03T01:02:32.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-12T12:02:29.000Z (over 1 year ago)
- Last Synced: 2025-01-02T07:46:04.652Z (5 months ago)
- Language: Python
- Size: 124 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fuck
![]()
**F**uck: an **u**ltimate **c**ensorship **k**iller - a tiny program for uncensoring russian texts
## Usage
To uncensor a particular text use command like this:
```sh
python -m fuck uncensor 'Нах**я до%@я нах%ярил??? Расх*%яривай нах@й - не дох*ярим. Них*я, не дох@я дох%ярим - пох*ярили'
```The command will emit an uncensored text:
```sh
Нахуя дохуя нахуярил??? Расхуяривай нахуй - не дохуярим. Нихуя, не дохуя дохуярим - похуярили
```To get the same result in a python command see [the example](./examples/main.py):
```py
from fuck import ProfanityHandlertext, 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:
```sh
Нахуя дохуя нахуярил??? Расхуяривай нахуй - не д0х*ярим. Нихуя, не дохуя дохуярим - похуярили
True
['д0х*ярим']
```To uncensor texts from a `.tsv` file with anecdotes using default settings run the following command:
```sh
python -m fuck stats
```## Installation
To install from `pip`:
```sh
pip install f-ck
```To create environment and install all dependencies execute the following command:
```sh
conda env create -f environment.yml
```