[Hejes-devel] [907] spell.py: get_productive_tips(): -d vegu igek (old, mond, kezd) etc.; issue #704
hejes-devel at nytud.hu
hejes-devel at nytud.hu
Wed Aug 21 13:10:21 CEST 2013
Revision: 907
Author: ludanyizs
Date: 2013-08-21 13:10:20 +0200 (Wed, 21 Aug 2013)
Log Message:
-----------
spell.py: get_productive_tips(): -d vegu igek (old, mond, kezd) etc.; issue #704
Modified Paths:
--------------
trunk/web2py/applications/helyesiras_webdev/modules/spell.py
Modified: trunk/web2py/applications/helyesiras_webdev/modules/spell.py
===================================================================
--- trunk/web2py/applications/helyesiras_webdev/modules/spell.py 2013-08-21 10:40:53 UTC (rev 906)
+++ trunk/web2py/applications/helyesiras_webdev/modules/spell.py 2013-08-21 11:10:20 UTC (rev 907)
@@ -260,6 +260,10 @@
return None
for ana in hanas:
if ana.pos == "IGE":
+ # kezd ~ kezdd, mond ~ mondd
+ if re.match(".*[bcfghjklmnprstv]" , ana.stem): # msh. + -d(d) vegu igek
+ tip = u"Ő " + unicode(tok, 'utf8') + u" [valamit]. (Harmadik személy, kijelentő mód. Felszólító módban, egyes szám, második személyben két d-vel.)"
+ return tip
# nakolas
for morph in ana.morphs:
if "TFt3" in morph.tag:
More information about the Hejes-devel
mailing list