[prev in list] [next in list] [prev in thread] [next in thread] 

List:       aspell-user
Subject:    [Aspell-user] numeric search keyword
From:       Enrico Teotti <enrico.teotti () gmail ! com>
Date:       2011-10-18 5:57:27
Message-ID: CAJfNLntO2pOiVGpCcD-SiWbvjJQ7jxuxg3OtLD8Ho+PUQRV70g () mail ! gmail ! com
[Download RAW message or body]

Hi guys,
I am introducing aspell to do return text suggestions on mistyped
search terms in a Ruby app I am building.
The issue I am having is sometimes the search term is a number (SKU) ie. 19=
81

When that happens the library=A0(https://github.com/fauna/raspell) that
talks to aspell goes nuts and returns 'W' as a suggestion (regardless
the number I enter).

I started looking in aspell docs for restrictions in keywords that
aspell can digest but I couldn't find anything about integers.

When I search for '1981' on the web aspell web interface/helper on:
http://suggest.aspell.net/index.php
returns
"Error: The word "1981" containes illegal characters. "

the console util doesn't seem to digest numbers very well either:

aspell -a
@(#) International Ispell Version 3.1.20 (but really Aspell 0.60.6.1)
1981


In the end I think I'll bypass the suggestion code when the search is
a number, ideally I'd prefer to hit aspell anyway and tell it to
ignore integer keywords.

Thanks in advance for any suggestion you have.

Enrico


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic