Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. #!/usr/bin/python
  2. # coding=utf-8
  3. # -*- encoding: utf-8 -*-
  4.  
  5.  
  6. #My guess is that the forms in -u are plural; as for the difference between
  7. #j-initial and i-initial, this has to do, I believe, with whether the
  8. #preceding word ends in a consonant or vowel: if it ends in a vowel, then
  9. #the j-initial form is used; if it ends in a consonant, then the i-initial
  10. #form is used.
  11.  
  12.  
  13. def main(stem, root, vowels):
  14. sp = {}
  15.  
  16. sp['inf'] = stem
  17. sp['past.p1.sg'] = 'inkun'
  18. sp['past.p1.sg'] = 'jnkun'
  19. sp['past.p2.sg'] = 'tkun' # thun
  20. sp['past.p3.m.sg'] = 'ikun'
  21. sp['past.p3.m.sg'] = 'jkun'
  22. sp['past.p3.f.sg'] = 'tkun' #thun
  23. sp['past.p1.pl'] = 'nkunu'
  24. sp['past.p2.pl'] = 'tkunu' # tirunu
  25. sp['past.p3.pl'] = [
  26. 'ikunu',
  27. ('jkunu', 'LR'),
  28. ('ikunu', 'LR'),
  29. ('~ikunu', 'RL')
  30. ]
  31. sp['pres.p1.sg'] = 'kont'
  32. sp['pres.p2.sg'] = 'kont'
  33. sp['pres.p3.m.sg'] = [
  34. 'kien',
  35. ('jkun', 'LR'),
  36. ('ikun', 'LR'),
  37. ('~ikun', 'RL')
  38. ]
  39. sp['pres.p3.f.sg'] = 'kienet'
  40. sp['pres.p1.pl'] = 'konna'
  41. sp['pres.p2.pl'] = 'kontu'
  42. sp['pres.p3.pl'] = 'kienu'
  43.  
  44. nsp = {}
  45. for f in sp:
  46. if isinstance(sp[f],list):
  47. s = [g+'x' if isinstance(g,str) else (g[0]+'x', g[1]) for g in sp[f]]
  48. else:
  49. s = sp[f] + 'x'
  50.  
  51. nsp[f + '.+neg'] = s
  52.  
  53. for n in nsp:
  54. sp[n] = nsp[n];
  55.  
  56. return sp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement