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

Duplicate and mispelled words cause strange bugs #20

Open
Aphexus opened this issue May 11, 2024 · 1 comment
Open

Duplicate and mispelled words cause strange bugs #20

Aphexus opened this issue May 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Aphexus
Copy link

Aphexus commented May 11, 2024

If there is a duplicate or misspelling then things like definition, synonyms, and such will not include the duplicate and this will create a size mismatch between the passed wordlist and the output defs, syns, etc.

Simply doing list(set(wrds)) solves the issue with duplicates but one should likely duplicate the entries to match the inputted words.

@Aphexus Aphexus added the bug Something isn't working label May 11, 2024
@ppizarror
Copy link
Owner

ppizarror commented May 11, 2024

Hi @Aphexus, interesting issue. Can you please create a PR with any new enhancements you might find? I'd appreciate any contribution to improving this library. Thanks!

Pablo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants