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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file yinglish-1.0.1.tar.gz.

File metadata

  • Download URL: yinglish-1.0.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for yinglish-1.0.1.tar.gz
Algorithm Hash digest
SHA256 12fe631c91c19b090369e3ee589fd0c1b442c06ea1c39f72e4e2ac2bcb7ff074
MD5 82a2b98fd67512c58806bec5fcff713b
BLAKE2b-256 7f547ed1d69fdb9d04abc4836b4b1fd03cb46e028a7600b9351f3bdf2ee1a1dd

See more details on using hashes here.

File details

Details for the file yinglish-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: yinglish-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for yinglish-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e526dc3e0bec2b26470fe9986d3f1451779ce7707b90fd09d67fd99613f89a0f
MD5 6336854c3ec143b99d6f02eff64cd873
BLAKE2b-256 045df524bc3f1180d3ff26540735c913820f04f5ecd556eb4769a8f48e347884

See more details on using hashes here.

Supported by

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