Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inconsistent Suggestions in WeCantSpell.Hunspell #91

Open
hetavi-chaudhary opened this issue Oct 1, 2024 · 2 comments
Open

Inconsistent Suggestions in WeCantSpell.Hunspell #91

hetavi-chaudhary opened this issue Oct 1, 2024 · 2 comments
Labels

Comments

@hetavi-chaudhary
Copy link

We are utilizing the Suggest method from the WeCantSpell.Hunspell library to generate spelling suggestions based on specific input strings we provide. We have integrated this library into two distinct applications, ensuring that both are supplied with identical input. However, we have observed inconsistencies in the suggestions returned by each application. For instance, when we provide the input "100", one application returns "P100" as a suggestion, while the other returns "A1000". Is it normal for the Suggest method to yield different results when called with the same input in different environments or applications?

Here is the code snippet demonstrating our implementation:

var inputstringList = new List<string> { "A100", "P100", "A100 Truck", "D100 Series" };
var dictionary = WordList.CreateFromWords(inputstringList);
var suggestions = dictionary.Suggest("100");

@aarondandy
Copy link
Owner

That is definitely interesting. It seems stable for multiple calls to Suggest on the same dictionary so the randomness is occurring during word list construction. I think that should definitely be stable.

@aarondandy aarondandy added the bug label Oct 1, 2024
@aarondandy
Copy link
Owner

It's probably worth investigating #88 along with this one when I get around to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants