On Tue, 18 Apr 2006, Kevin Atkinson wrote:

On Tue, 18 Apr 2006, Ethan Bradford wrote:

On 4/18/06, Kevin Atkinson <[EMAIL PROTECTED]> wrote:

On Tue, 18 Apr 2006, Ethan Bradford wrote:

Here's a proposal for the API:
 We add the type AspellIntEnumeration (or maybe a better name --
lower-case
L next to cap I is ugly, but it would be nice if it was like
AspellStringEnumeration).
 We add a call to extract that from an AspellWordList:
    AspellIntEnumeration * scores =
aspell_word_list_scores(suggestions);

I was more thinking of using a struct something like
   struct Suggestion {
      const char * word;
      int word_len;
      int score;
   }
   and new methods to go along with it....

Is there an iterator to go through a list of these, like
AspellStringEnumeration?  And does AspellWordList contain all the data
necessary to create that list?

No you would need to create one just like the AspellIntEnumeration.

And to answer the second question AspellWordList won't contain the necessary info. You will need:

  AspellSuggestionList
  AspellSuggestionEnumeration

and methods to get these classes





_______________________________________________
Aspell-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/aspell-user

Reply via email to