Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rimochan/yinglish
【yinglish】淫语翻译机!
https://github.com/rimochan/yinglish
Last synced: 7 days ago
JSON representation
【yinglish】淫语翻译机!
- Host: GitHub
- URL: https://github.com/rimochan/yinglish
- Owner: RimoChan
- License: other
- Created: 2020-11-14T03:09:15.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-02T12:42:47.000Z (over 1 year ago)
- Last Synced: 2024-10-01T20:07:51.955Z (about 1 month ago)
- Language: Python
- Size: 9.77 KB
- Stars: 809
- Watchers: 6
- Forks: 49
- Open Issues: 5
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# 淫语翻译机!
能把中文翻译成淫语的翻译机!
(其实灵感是来自北京地铁站,那个写站名的告示牌真的好色啊2333)
## 样例
```python
import yinglishs = '不行,那里不行。'
print(yinglish.chs2yin(s))
# 不行,那……那里不行……s2 = '吃葡萄不吐葡萄皮。'
print(yinglish.chs2yin(s2))
# ……吃〇〇不吐葡……葡萄皮……
```## 接口说明
```python
def chs2yin(s, 淫乱度=0.5):
```s是原字符串,淫乱度是0~1的实数,越大越淫乱,表示每个词语被转化的概率。
## 安装
首先,你需要安装一个Python(3.6以上版本)。
然后——
```bash
pip install yinglish
```最后`import yinglish`就行了。
## 结束
就这样,大家88(溜了溜了)。