Quick Links
Home Changes
© 1999 Boudewijn Rempt Logo © www.python.org |
Drift -- a game of language generationDownload: drift-1.0.tar.gz. CAVEAT DOLATOR: The data files and ipa.py for this app are in utf-8 encoding. Opening and saving them in another encoding DESTROYS the functionality. You have been warned. ITEM: You need Python 2.2.1 to run drift. Really. I wrote this to experiment with the new features in Python. InstructionsSet your environment with setenv (after editing it to suit your preferences). Source it: boud@calcifer:~/prj/drift> . setenv Run the generator with the packaged phonology and lexicon: boud@calcifer:~/prj/drift> drift phonology lexicon You can redirect the output to a file, if you want to: boud@calcifer:~/prj/drift> drift phonology lexicon > something.ut8 If you want to create your own phonology, then you should carefully read the example phonology and lexicon files. They tell you everything you need to know. HackingDrift is unmaintained, unloved hackware. You are free to hack around. If you want to send me patches, make sure you have a working unittest for it. Look at unittests.py for example tests. Run the unittests with a simple:
boud@calcifer:~/prj/drift> python unittests.py
testComplexRules (__main__.RuleTestCase) ... ok
testSimpleFinalSubstitution (__main__.RuleTestCase) ... ok
testSimpleInitialSubstitution (__main__.RuleTestCase) ... ok
testSimpleSubstitution (__main__.RuleTestCase) ... ok
testSetPhoneme (__main__.SyllableTestCase) ... ok
testSetPhoneme (__main__.WordTestCase) ... ok
----------------------------------------------------------------------
Ran 6 tests in 14.213s
OK
TODO (also known as known bugs):
DREAMS (also known as you do it):
ACKNOWLEDGEMENTS
COPYINGGPL... |