Posts tagged ‘php’

Pinyin Tones Transformation

Well this is for those of you who learn Mandarin. Sometimes you need to type a phrase in pinyin and add some tone marks because digital notation (Wo3 shi4 Mei3guo2 ren2) looks ugly (Wǒ shì Měiguó rén is a way better). I’ve just made a WordPress plugin for this. This is a plugin homepage, but if you want to know how it works or just need code not-for-wordpress, please read the rest of this entry.
Continue reading ‘Pinyin Tones Transformation’ »

Text generation with Markov chains

Markov chains can be used by spammers (a bit outdated approach) to generate random texts from real ones. Not so useful for spammers though, so I did it actually for lulz. Here are some examples and some code follows.
Continue reading ‘Text generation with Markov chains’ »