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

hunspell: add Suggester#proceedPastRep to avoid losing relevant suggestions #13612

Merged
merged 2 commits into from
Jul 27, 2024

Conversation

donnerpeter
Copy link
Contributor

@donnerpeter donnerpeter commented Jul 26, 2024

This PR introduces a way to get a copy of the suggester instance that doesn't stop after encountering acceptable words
(after applying REP rules). By default, Hunspell stops when it finds any, but this behavior may
not always be desirable, e.g., if we have "REP i ea", "tims" would be replaced only by "teams" and not "times", which
could also be meant.

@donnerpeter donnerpeter requested a review from dweiss July 26, 2024 07:57
}

/**
* Returns a copy of this suggester instance that doesn't stop after encountering acceptable words
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be good to copy-paste this explanation to the PR's description, Peter. Explains what the patch is doing. I'll do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@donnerpeter donnerpeter merged commit 481ca2d into apache:main Jul 27, 2024
4 checks passed
donnerpeter added a commit that referenced this pull request Jul 27, 2024
…stions (#13612)

* hunspell: add Suggester#proceedPastRep to avoid losing relevant suggestions

(cherry picked from commit 481ca2d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants