Coder Social home page Coder Social logo

yinglish's Introduction

淫语翻译机!

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

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

yinglish's People

Contributors

rimochan avatar chenmaster05 avatar lhxnois avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.