[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Aspell-user] numeric search keyword

From: Enrico Teotti
Subject: [Aspell-user] numeric search keyword
Date: Tue, 18 Oct 2011 16:57:27 +1100

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. 1981

When that happens the library ( 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:
"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

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]