Skip to main content

淫语翻译机!

能把中文翻译成淫语的翻译机!

(其实灵感是来自北京地铁站,那个写站名的告示牌真的好色啊2333)

样例

import yinglish

s = '不行,那里不行。'
print(yinglish.chs2yin(s))
# 不行,那……那里不行……

s2 = '吃葡萄不吐葡萄皮。'
print(yinglish.chs2yin(s2))
# ……吃〇〇不吐葡……葡萄皮……

接口说明

def chs2yin(s, 淫乱度=0.5):

s是原字符串,淫乱度是0~1的实数,越大越淫乱,表示每个词语被转化的概率。

安装

首先,你需要安装一个Python(3.6以上版本)。

然后——

pip install yinglish

最后import yinglish就行了。

结束

就这样,大家88(溜了溜了)。

Metadata

Release files for yinglish 1.0.1

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

Source distribution (sdist)

Source distribution for yinglish 1.0.1
File Size Uploaded
yinglish-1.0.1.tar.gz 2.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yinglish 1.0.1
File Interpreter ABI Platform
yinglish-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / yinglish-1.0.1.tar.gz

Download URL yinglish-1.0.1.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12fe631c91c19b090369e3ee589fd0c1b442c06ea1c39f72e4e2ac2bcb7ff074
BLAKE2b-256 checksum
How to use checksums
7f547ed1d69fdb9d04abc4836b4b1fd03cb46e028a7600b9351f3bdf2ee1a1dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Release files / yinglish-1.0.1-py3-none-any.whl

Download URL yinglish-1.0.1-py3-none-any.whl
Size 2.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e526dc3e0bec2b26470fe9986d3f1451779ce7707b90fd09d67fd99613f89a0f
BLAKE2b-256 checksum
How to use checksums
045df524bc3f1180d3ff26540735c913820f04f5ecd556eb4769a8f48e347884
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

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