Hello Eleonóra, You need a dictionary with morphological data, for example for English (http://www.openoffice.org/nonav/issues/showattachment.cgi/59629/english-dictionaries-2008-01-23.zip):
$ ~/hunspell-1.2.8/src/tools/analyze ~/english-dictionaries-2008-01-23/en_US.{aff,dic} /dev/stdin men > men analyze(men) = st:man ts:Ns stem(men) = man mouse men generate(mouse, men) = mice There are also different Hunspell dictionaries in the Magyar Ispell distribution. For morphological analysis and generation, also for better stemming you need one of the "gen" dictionary variants (they contain morphological data fields, too): ~/magyarispell-1.4$ ~/hunspell-1.2.8/src/tools/analyze hu_HU_u8_gen.{aff,dic} /dev/stdin almát > almát analyze(almát) = st:alom po:noun ts:PLUR ts:NOM is:POSS_SG_3 is:ACC analyze(almát) = st:alma po:noun ts:NOM is:ACC stem(almát) = alom stem(almát) = alma alma körte generate(alma, körte) = alma generate(alma, körte) = alom alma almás generate(alma, almás) = almás generate(alma, almás) = almos alma al generate(alma, al) = NO DATA alma alma generate(alma, alma) = alma generate(alma, alma) = alom generate(alma, alma) = almája generate(alma, alma) = alomja Regards, László 2009/3/24 ge <eleonor...@gmx.net>: > Hello, László, > > Thanks for the explanation. I have some additional questions: > > 1. I also could not get any meaningful result from generate method of analyze. > input: > alma körte > alma almás > alma al > alma alma > Output: > generate(alma, körte) = NO DATA > generate(alma, almás) = NO DATA > generate(alma, al) = NO DATA > generate(alma, alma) = NO DATA > Could you please give a working example? > > 2. In fact analyze and stem pass back the same result: > input: almát > Output: > analyze(almát) = st:almok - > analyze(almát) = st:alma - > stem(almát) = almok > stem(almát) = alma > If these methods return always the same result, why two methods? > > Thanks in advance: eleonora > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org > For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lingucomponent.openoffice.org For additional commands, e-mail: dev-h...@lingucomponent.openoffice.org