| Acme::Lingua::ZH::Remix - The Chinese sentence generator. |
Acme::Lingua::ZH::Remix - The Chinese sentence generator.
use Acme::Lingua::ZH::Remix;
rand_sentence;
The exported function `rand_sentence` returns a string of one sentence of Chinese like:
喔喔,你的熱情與頑固,心情就像結晶的鹽一樣出現了。
It uses the corpus data from the OurNet::ChatBot manpage by default. All generate sentences are remixes of the corpus. The corpus should use full-width punction characters.
Warning: It has non-zero chance entering an infinte loop.
Copyright 2010 by Kang-min Liu, <gugod@gugod.org>
This program is free software; you can redistribute it a nd/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
| Acme::Lingua::ZH::Remix - The Chinese sentence generator. |