PyLOLz
A Python library for translating English to LOLspeak
Created by Stephen Newey
Original Python code, copyright 2008 Stephen Newey
Inspired by Dave Dribin's Ruby library lolspeak (http://www.dribin.org/dave/lolspeak/)
tranzlator.yml dictionary by Dave Dribin
Python code licensed under the Mozilla Public License v1.1. http://www.mozilla.org/MPL/MPL-1.1.html
Requires: PyYAML (http://pyyaml.org/)_
Download latest version (0.3): http://pylolz.googlecode.com/files/pylolz-0.3.tar.gz
Usage:
Run the lolz.py file from the command line followed by a word or sentence to translate
In code:
>>> from pylolz.lolz import Tranzlator
>>> t = Tranzlator()
>>> t.translate_sentence('Hello. My English skills are perfect.')
'y halo thar. mah english skillz r perfik.'