#6 New morphy function

open
nobody
None
5
2002-05-30
2002-05-30
Benjamin Han
No

The original function in wntools.py suffered from at
least one bug: try morphy('days', collect=1) and it
returned nothing. The following version 'newmorphy' is
a half rewrite and it corrects the problem.

See the attached file

Discussion

  • Benjamin Han
    Benjamin Han
    2002-05-30

    new version of morphy function

     
    Attachments
  • Benjamin Han
    Benjamin Han
    2002-06-06

    new morphy function (can replace morphy in wntools.py)

     
    Attachments
  • Benjamin Han
    Benjamin Han
    2002-06-06

    Logged In: YES
    user_id=555776

    Found a stupid bug: in the case of collect=0 the original
    form instead of the modified word ('subst') is returned if
    it's found in the dictionary. The file newmorphy.py is
    modifed and re-attached here.

    BTW if you want you can replace morphy() with newmorphy() in
    wntools.py entirely.