From: Ruud B. <ba...@xs...> - 2012-07-21 11:38:35
|
Hi, the problem is in the ending dot. Dividing the sentences into words is done by each app individually and different. OOo/LO and Mozilla are different, as is the comand line. So far, I have not found a perfect solution. Try adding the dot as a wordchar. What I know that does work, is replacing an abbreviation OK with O.K. using a rep: REP ^OK$ O.K. That makes a diference .. Ruud Op 21-07-12 03:44, Sahand.T schreef: > Hi > > I'm about to create a wordlist and am considering including > abbreviations in the wordlist. Before I do that I need to know how > hunspell deals with dots (.) in the wordlist. Are dots even allowed in > the wordlist for hunspell? If so, can I even write an abbreviation > like "O.K." with a dot after the final letter and have hunspell > correct "O.K" to "O.K."? > > I tried this: > > ------------------------- > > $ test.dic > 1 > O.K. > > $ test.txt > O.K > O.K. > > $ analyze test.aff test.dic test.txt >> O.K > Unknown word. >> O.K. > ------------------------- > > The "O.K" Turned up as an unknown word and the "O.K." (with dot in > end) didn't show anything at all. What does that mean? > > If I change the OK in the dic file to "O.K" (without final dot) > everything is fine: > > ------------------------- > > $ test.dic > 1 > O.K > > $ analyze test.aff test.dic test.txt >> O.K > analyze(O.K) = st:O.K > stem(O.K) = O.K >> O.K. > analyze(O.K.) = st:O.K > analyze(O.K.) = st:O.K > stem(O.K.) = O.K > > ------------------------- > > The problem here is that it doesn't correct "O.K" to "O.K." which is > what I want. > > Thanks > > /S.T > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Hunspell-devel mailing list > Hun...@li... > https://lists.sourceforge.net/lists/listinfo/hunspell-devel > |