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

Make sure strings are suitable length before checking for plurals #278

Merged
merged 1 commit into from
Jun 18, 2024

Conversation

bovard
Copy link
Member

@bovard bovard commented Jun 18, 2024

@bovard bovard merged commit ecdf7a3 into master Jun 18, 2024
4 checks passed
@bovard bovard deleted the fix-guess-bug branch June 18, 2024 16:13
@@ -283,6 +283,9 @@ def compare_words(a, b) -> bool:
b = normalize(b)
if a == b:
return True
# don't check for plurals if string is too short
if len(a) < 3 or len(b) < 3:

Choose a reason for hiding this comment

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

Looks good if we don't have any 2 letter keywords.

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.

3 participants