Skip to main content

yinglish

Project description

淫语翻译机!

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

(其实灵感是来自北京地铁站,那个写站名的告示牌真的好色啊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(溜了溜了)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yinglish-1.0.1.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

yinglish-1.0.1-py3-none-any.whl (2.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page