Pure-Python port of eyo-kernel (dictionary-based yoification)
Project description
peyo
Pure-Python port of the eyo-kernel yoification engine.
Quickstart
from peyo import safe_eyo, not_safe_eyo
print(safe_eyo.restore("Ежик и елка"))
print(not_safe_eyo.restore("все"))
safe_eyouses thedictionary/safe.txtfromeyo-kernel.not_safe_eyousesdictionary/not_safe.txt.
API:
Eyo.restore(text) -> strEyo.lint(text, group_by_words=False) -> list[dict]
Dictionaries:
Eyo().dictionary.set(str_or_lines)Eyo().dictionary.add_word(line)Eyo().dictionary.remove_word(word)
Attribution
This project is a Python port of eyo-kernel by Denis Seleznev and uses the upstream dictionaries.
The original project is MIT-licensed; see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
peyo-0.1.0.tar.gz
(106.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
peyo-0.1.0-py3-none-any.whl
(107.2 kB
view details)
File details
Details for the file peyo-0.1.0.tar.gz.
File metadata
- Download URL: peyo-0.1.0.tar.gz
- Upload date:
- Size: 106.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e796644d31a44fbec104141f34bae6eb8895cf382ba2dd9a2d2137f03a017469
|
|
| MD5 |
19a395c7b1c62ce3c19f79ea6f8842e3
|
|
| BLAKE2b-256 |
3dc5f6b7e2c399986f9e526f182a510efc3b351a5754e985dbe6fe51d55d2226
|
File details
Details for the file peyo-0.1.0-py3-none-any.whl.
File metadata
- Download URL: peyo-0.1.0-py3-none-any.whl
- Upload date:
- Size: 107.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55dff986de9396ae85dc39ba5d5f9dd182f37e2cbe53276ced8930d0ae0ca1f4
|
|
| MD5 |
f7fa00d0d55d400db9a657fcb6bfc289
|
|
| BLAKE2b-256 |
7f338990f657bcf041e8ad93b2216eaa8eb9539486456441b2a7ea60df15fa94
|