@@ -27,7 +27,7 @@ def common():
27
27
# menu commands
28
28
def commands ():
29
29
return {
30
- "ok" : [{"stem" :"ye " ,"affix" :[ "s" , "ah" , "p" ] },{"stem" :"igen" },{"stem" :"aha" },{"stem" :"ja" ,"affix" :["ja" ,"h" ]},{"stem" :"ok" ,"affix" :["é" ,"s" ,"és" ,"sa" ,"ay" ,"ézd" ,"ézza" ],"exc" :[{"stem" :"nem" }]},{"stem" :"úgy" ,"exc" :[{"stem" :"nem" }]},{"stem" :"így" ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" }]},{"stem" :"jó" ,"wordclass" :"adjective" ,"max_words" :4 ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" },{"stem" :"(nap\w+|reg+elt|est[eé]t)" ,"wordclass" :"regex" }]}],
30
+ "ok" : [{"stem" :"[jy]+e+a*[hps]* " ,"wordclass" : "regex" },{"stem" :"igen" },{"stem" :"aha" },{"stem" :"ja" ,"affix" :["ja" ,"h" ]},{"stem" :"ok" ,"affix" :["é" ,"s" ,"és" ,"sa" ,"ay" ,"ézd" ,"ézza" ],"exc" :[{"stem" :"nem" }]},{"stem" :"úgy" ,"exc" :[{"stem" :"nem" }]},{"stem" :"így" ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" }]},{"stem" :"jó" ,"wordclass" :"adjective" ,"max_words" :4 ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" },{"stem" :"(nap\w+|reg+elt|est[eé]t)" ,"wordclass" :"regex" }]}],
31
31
"cancel" : [{"stem" :"^([ae]z\s)?(\w+\s)?(nem?|no(pe|ne)?)(\s\w+)?(\s\w+)?$" ,"boundary" :False ,"exc" :[{"stem" :"jó" },{"stem" :"tud" ,"wordclass" :"verb" },{"stem" :"sikerül" ,"affix" :["t" ]},{"stem" :"haragudj" ,"affix" :["on" ]},{"stem" :"tud" ,"wordclass" :"verb" }],"wordclass" :"regex" },{"stem" :"cancel" },{"stem" :"mégse" ,"affix" :["m" ],"max_words" :4 },{"stem" :"elvetés" },{"stem" :"ves[ds]e?\sel" ,"wordclass" :"regex" }],
32
32
"next" : [{"stem" :"next" },{"stem" :"másikat" ,"max_words" :5 },{"stem" :"tovább" ,"max_words" :5 ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" }]},{"stem" :"előre" ,"max_words" :5 ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" }]},{"stem" :"még" ,"max_words" :4 ,"exc" :[{"stem" :"\w+[ad]\smeg" ,"wordclass" :"regex" },{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" },{"stem" :"egy" },{"stem" :"1" },{"stem" :"hang\w*" ,"wordclass" :"regex" }]},{"stem" :"more" },{"stem" :"continue" },{"stem" :"folyta[st]+(a|[ao]?[dn]|ni|[aá]s)?" ,"wordclass" :"regex" ,"exc" :[{"stem" :"((m[eé]g)?[ns]em*i?|baj)" ,"wordclass" :"regex" }]},{"stem" :"következő" ,"affix" :["t" ,"re" ]},{"stem" :"mond+([hj]a[dt]?)?(od|ja)?" ,"wordclass" :"regex" ,"exc" :[{"stem" :"(vala)?[km]i([jlnv]?y?[eé])?[klrt]?" ,"wordclass" :"regex" },{"stem" :"nem" },{"stem" :"csak" },{"stem" :"hogy(an)?\smond\w*" ,"wordclass" :"regex" }]}],
33
33
"back" : [{"stem" :"back" },{"stem" :"vissza" ,"max_words" :5 ,"affix" :["lép" ,"lépés" ],"exc" :[{"stem" :"hang\w*" ,"wordclass" :"regex" }]},{"stem" :"hátra" ,"max_words" :4 },{"stem" :"előző" ,"wordclass" :"noun" ,"max_words" :5 }],
@@ -90,7 +90,7 @@ def dow():
90
90
"holnap" : [{"stem" :"holnap(ig?|ra|pal|t[oó]l)?" ,"wordclass" :"regex" ,"exc" : [{"stem" :"holnap\s?ut[aá]n(ig?|ra|nal|t[oó]l)?" ,"wordclass" :"regex" }]}],
91
91
"holnaputan" : [{"stem" :"holnap\s?ut[aá]n(ig?|ra|nal|t[oó]l)?" ,"wordclass" :"regex" }],
92
92
"tegnap" : [{"stem" :"tegnap(ig?|ra|pal|t[oó]l)?" ,"wordclass" :"regex" ,"exc" :[{"stem" :"tegnap\sel[oő]t+?(ig?|re|t?el|t?[oó]l)?" ,"wordclass" :"regex" }]}],
93
- "tegnapelott" : [{"stem" :"tegnap\sel [oő]t+(ig?|re|t?el|t?[oó ]l)?" ,"wordclass" :"regex" }],
93
+ "tegnapelott" : [{"stem" :"tegnap\s?el [oő]t+(ig?|re|t?el|t?[oóöő ]l)?" ,"wordclass" :"regex" }],
94
94
"hetfo" : [{"stem" :"hétfő" ,"wordclass" :"noun" }],
95
95
"kedd" : [{"stem" :"kedd" ,"wordclass" :"noun" }],
96
96
"szerda" : [{"stem" :"szerda" ,"wordclass" :"noun" }],
@@ -122,7 +122,7 @@ def smalltalk():
122
122
"about_look" : [{"stem" :"hogy(an)?\s(n[eé]zn?[eé]l\ski|mutatsz|festesz)" ,"wordclass" :"regex" },{"stem" :"(k[uü]ldj|mutas+).+?(k[eé]pet|fot[oó]t|sz?elfie?t)\smagadr[oó]l" ,"wordclass" :"regex" },{"stem" :"(k[uü]ldj|mutas+)\smagadr[oó]l.+?(k[eé]pet|fot[oó]t|sz?elfie?t)" ,"wordclass" :"regex" },{"stem" :"(van|milyen)\s(az?\s)?(arcod|kin[eé]zeted)" ,"wordclass" :"regex" },{"stem" :"szép vagy" }],
123
123
"about_age" : [{"stem" :"mennyi idős vagy" },{"stem" :"hány éves vagy" },{"stem" :"melyik évben születtél" },{"stem" :"mikor születtél" },{"stem" :"(melyik\s[eé]vben|mikor)\sk[eé]sz([uü]lt[eé]l|[ií]tet+ek)" ,"wordclass" :"regex" },{"stem" :"(h[aá]ny(adik|ban)|mikor\s(van|[uü]n+epled)\s?a?)\ssz[uü]l(et[eé]s|i)napod(at)?" ,"wordclass" :"regex" },{"stem" :"h[aá]ny\s[eé]vesnek\s.+?\smagad(at)?" ,"wordclass" :"regex" },{"stem" :"sz[uü]l(et[eé]s)?i?napod(at)?\s(h[aá]nyadik[aá]n|mikor|melyik)" ,"wordclass" :"regex" }],
124
124
"about_zodiac" : [{"stem" :"(neked\s)?mi\sa\s(horoszk[oó]pod|csil+agjegyed)" ,"wordclass" :"regex" },{"stem" :"milyen jegyben születtél" },{"stem" :"a\s(te\s)?(horoszk[oó]pod|csil+agjegyed)\smi(csoda)?" ,"wordclass" :"regex" },{"stem" :"milyen\sjegyben\ssz[uü]let+\w+" ,"wordclass" :"regex" }],
125
- "about_location" : [{"stem" :"(hol|helyen)\s(k[eé]sz[uü]lt[eé]l|k[eé]sz[ií]tet+ek|sz[uü]let+[eé]l|(hoztak|j[oö]t+[eé]l).+?l[eé]tre)" ,"wordclass" :"regex" },{"stem" :"hon+an\s(sz[aá]rmazol|[ií]rsz|val[oó]\svagy)" ,"wordclass" :"regex" },{"stem" :"ho(n+an|l)\svagy\s(most\s)?(helyileg|most|pontosan)" ,"wordclass" :"regex" },{"stem" :"(hol\s|mer+e\s)(laksz|(van|az?).+?ot+honod)" ,"wordclass" :"regex" }],
125
+ "about_location" : [{"stem" :"(hol|helyen)\s(k[eé]sz[uü]lt[eé]l|k[eé]sz[ií]tet+ek|sz[uü]let+[eé]l|(hoztak|j[oö]t+[eé]l).+?l[eé]tre)" ,"wordclass" :"regex" },{"stem" :"hon+an\s(sz[aá]rmazol|[ií]rsz|val[oó]\svagy)" ,"wordclass" :"regex" },{"stem" :"ho(n+an|l)\svagy\s(most\s)?(helyileg|most|pontosan)" ,"wordclass" :"regex" },{"stem" :"(hol\s|mer+e\s)(laksz|(van|az?).+?ot+honod)" ,"wordclass" :"regex" },{ "stem" : "hol vagy" , "max_words" : 3 } ],
126
126
"about_family" : [{"stem" :"ki(k|t|ket)?\s(az?\s|tartasz\sa\s)?(te\s)?(csal[aá]dod(nak)?|sz[uü]l(t|et+[eé]l)|sz[uü]leid(nek)?|([eé]des)?(any(uk)?[aá]d|ap(uk)?[aá]d)(nak)?)" ,"wordclass" :"regex" },{"stem" :"csal[aá]dban\s([eé]l(sz|tek)|sz[uü]let+[eé]l)" ,"wordclass" :"regex" },{"stem" :"(h[aá]ny|van(nak)?)\stestv[eé]rei?d" ,"wordclass" :"regex" },{"stem" :"(kik?|van(n?ak)?[\-\s]?e?)(\sa)?(\shoz+[aá]d?\s?tartoz[oó]i?d|csal[aá]dod)" ,"wordclass" :"regex" }],
127
127
"about_software" : [{"stem" :"(hogy(hogy|an)?|mit[oöő]l).+?(m[uüű]k[oö]dsz|(tudsz |vagy k[eé]pes )?(meg)?[eé]rte(sz|d|ni)\,? (meg )?(hogy )?(a?mit mond(ok|tam)|a?mit [ií]r(ok|tam)|engem))" ,"wordclass" :"regex" },{"stem" :"mi(jen|lyen|en|\s?f[eé]le|\s?fajta)\sfekete\s?m[aá]gia" ,"wordclass" :"regex" },{"stem" :"neur[aá]lis\sh[aá]l[oó]\w*" ,"wordclass" :"regex" ,"inc" :[{"stem" :"vagy" },{"stem" :"te" },{"stem" :"működ" ,"wordclass" :"verb" }]}],
128
128
"about_skills" : [{"stem" :"mi(lyen|(ke)?t|k?re)\s(funkci[oó](id?|kat)\s|dolgok(at|ra)\s|tr[uü]k+([oö]k(et|re)|jeid?)\s|parancsok(at|ra)\s)?(tud(sz|n[aá]l)?\s(csin[aá]lni|mutatni)?|ismer(sz)?|(vagy\s|van\s)?(k[eé]pes|(be|meg)?tan[ií]tva)|tan[ií]tot+[aá]k\s(be|neked|meg)?|(k[eé]pes+[eé]gei?d?|tulajdons[aá]g(o|ai)d?)\svan(nak)?)" ,"wordclass" :"regex" ,"exc" :[{"stem" :"mond" ,"wordclass" :"verb" }]},{"stem" :"mihez ért" ,"affix" :["esz" ]},{"stem" :"mi((ke)?t|k?r[oöő]l)\s(lehet\s|szabad\s|tudok\s)?k[eé]rdez+h?e\w+" ,"wordclass" :"regex" }],
@@ -135,7 +135,7 @@ def smalltalk():
135
135
"are_you_busy" : [{"stem" :"elfoglalt" ,"inc" :[{"stem" :"vagy" }]},{"stem" :"r[aá]m?\s?[eé]r(n[eé]l|sz)(\smost)?(\segy)?(\skicsit|\skis\s\w+|\svalamen+yi\w*)?" ,"wordclass" :"regex" },{"stem" :"(van|volna)\s(most\s)?(r[aá]m?\s)?(most\s)?(egy\s)?(kis\s|kev[eé]s\s|valamen+yi\s)?(szabad\s?)?id[oöő]d(\sr[aá]m)?" ,"wordclass" :"regex" },{"stem" :"sok dolgod van" }],
136
136
"are_you_lying" : [{"stem" :"hazud" ,"wordclass" :"verb" },{"stem" :"nem mondt[aá][dl]\s((el|meg)\saz\s)?igaz(at|s[aá]got)" ,"wordclass" :"regex" }],
137
137
"are_you_serious" : [{"stem" :"(nem?|csak)\s(vic+el(sz|j)?|mond+(od|ja)?|ideges[ií]ts(en)?)" ,"wordclass" :"regex" },{"stem" :"(komolyan|t[eé]nyleg)\s?([uúií]gy\s|azt\s)?((mond|gondol|[ií]r)(ja|od|tad?)|hisz(i|ed)|hit+ed?)" ,"wordclass" :"regex" },{"stem" :"biztos(an)?\s(vagy\s)?(\w+\s)?(ben+e|eb+en|mond(ta|o)d|mond[jt]a)" ,"wordclass" :"regex" },{"stem" :"ezt?\s(most\s)?komoly(an)?" ,"wordclass" :"regex" }],
138
- "can_you_hear_me" : [{"stem" :"(olvas+a|hal+ja|n[eé]zi|van\sit+)(\sezt)?\s(vala|b[aá]r)ki(\sis)?" ,"wordclass" :"regex" },{"stem" :"(hal+(asz|od)|l[aá]t(sz|od)|vesze[ld])\s(engem|a?mit\s(mondok|[ií]rok|k[eé]rdezek))" ,"wordclass" :"regex" },{"stem" :"valaki\s(hal+(ja)?\s|olvas+a|figyeli?(\sar+a)?)\sa?mit\s(ide\s?|it+\s)?([ií]rok|mondok|k[eé]rdezek)" ,"wordclass" :"regex" },{"stem" :"felfogtad" ,"max_words" :3 },{"stem" :"itt" ,"inc" :[{"stem" :"vagy" },{"stem" :"van" }],"max_words" :3 }],
138
+ "can_you_hear_me" : [{"stem" :"(olvas+a|hal+ja|n[eé]zi|van\sit+)(\sezt)?\s(vala|b[aá]r)ki(\sis)?" ,"wordclass" :"regex" },{"stem" :"(hal+(asz|od)|l[aá]t(sz|od)|vesze[ld])\s(engem|a?mit\s(mondok|[ií]rok|k[eé]rdezek))" ,"wordclass" :"regex" },{"stem" :"valaki\s(hal+(ja)?\s|olvas+a|figyeli?(\sar+a)?)\sa?mit\s(ide\s?|it+\s)?([ií]rok|mondok|k[eé]rdezek)" ,"wordclass" :"regex" },{"stem" :"felfogtad" ,"max_words" :3 },{"stem" :"itt" ,"inc" :[{"stem" :"vagy" },{"stem" :"van" }],"max_words" :3 },{ "stem" : "halló" , "max_words" : 3 } ],
139
139
"can_you_learn" : [{"stem" :"(k[eé]pes(\svagy)?|tud(sz)?)\stanulni" ,"wordclass" :"regex" },{"stem" :"tanulsz\s(is|[ae].+?b[oóöő]l)" ,"wordclass" :"regex" },{"stem" :"[dln][aáeéo][km]\s(be|meg)?tan[ií]tani\b " ,"wordclass" :"regex" ,"boundary" :False }],
140
140
"can_you_understand_me" :[{"stem" :"(meg)?[eé]rt(e(d|sz|t+ed?)|i)\,?((\shogy)?\sa?mit\s([ií]r|mond)\w+|\smagyarul)" ,"wordclass" :"regex" }],
141
141
"contact" : [{"stem" :"mi(lyen)?\s(.+?\s)?(e\-?mail\s?)?c[ií]me[dn]?" ,"wordclass" :"regex" },{"stem" :"elérhetőség" ,"wordclass" :"noun" },{"stem" :"elér" ,"wordclass" :"verb" ,"inc" :[{"stem" :"önt" },{"stem" :"téged" }]}],
0 commit comments