Paradigm chopper
Revision as of 13:29, 28 September 2007 by Francis Tyers (talk | contribs) (New page: '''Paradigm chopper''' is a python script which removes redundant paradigm definitions from dictionaries, and fixes references to them. For example, if you have a dictionary thus: <pre> ...)
Paradigm chopper is a python script which removes redundant paradigm definitions from dictionaries, and fixes references to them. For example, if you have a dictionary thus:
<pardef n="car__n"> <e> <p> <l/> <r><s n="n"/><s n="sg"/></r> </p> </e> <e> <p> <l>s</l> <r><s n="n"/><s n="pl"/></r> </p> </e> </pardef> <pardef n="tree__n"> <e> <p> <l/> <r><s n="n"/><s n="sg"/></r> </p> </e> <e> <p> <l>s</l> <r><s n="n"/><s n="pl"/></r> </p> </e> </pardef>
it would remove the tree__n
paradigm, and make all main section elements that point to this point to car__n
instead. Currently if two paradigms are the same, it keeps the one with the shortest name.