Skip to content

ncouture/TypoGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python TypoGenerator

This is a typo generator wrapped in an XMLRPC service that returns JSON.

Configuration

  • Edit PID_FILE in typogenerator.py

Methods

insertedKey

skipLetter

doubleLetter

reverseLetter

wrongVowel

wrongKey

synonymSubstitution

rhymeSubstitution

Dependencies

  • nltk
  • A dictionary file (eg: /usr/share/dict/words, typogenerator.py:DICTIONARY)
  • (optional) rhyme for the rhymeSubstitution method

Testing

From any python interpreter execute the following:

>>> import xmlrpclib
>>> server = xmlrpclib.ServerProxy("http://server:port")
>>> server.skipLetter("hello")

TODO

  • logging

About

Typo generator XMLRPC service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published