aspell-devel
[Top][All Lists]
Advanced

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

[aspell-devel] Why does aspell prefer "skyjack"?


From: mermik
Subject: [aspell-devel] Why does aspell prefer "skyjack"?
Date: Sun, 22 Feb 2004 18:55:48 +0100 (CET)

Dear All,
   First, I hope this is the right list (and not the aspell-user) for my
problem, if not, please let me know.
   I started to develop a network playable version of my favourite word
game "Anagramarama" (see http://www.coralquest.com/anagramarama/), and I
decided to replace its internal dictionary with aspell - it works quite
well, but I have a little problem:
   I generate words (with a given length) to guess by generating a random
string, and pick up an appropriate word from aspell's suggestions list. It
seems to me, that aspell "prefers" some words when making suggestions. I
have generated 30000 seven letters long words, it came up with 8806
different ones, but some of them occured much more frequently than the
others: "skyjack" was the winner, it came up 153 times ( ~ every 200nd
turn in average)  Actually, the top 3 was the same when running another
30000 two times.
   Anyway, it's not a big problem, and I can also imagine, that it lies
with the unfamous "rand()" function. All I want is to ask you, if any of
the list memebers have an idea how to generate words randomly in a
more "fair" way -if yes, please let me know.
   If someone is inetersted, I can send the list of the generated words
sorted by their frequency, and the code which generated it.

Thanky you and Good bye:
Miklos Merenyi







reply via email to

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