Nudin / LexData

Python bot framework for Lexemes on Wikidata
https://nudin.github.io/LexData/
MIT License
18 stars 5 forks source link

Bug: Lexeme search doesn't work because it's comparing category label to an item ID #20

Open mtanti opened 1 year ago

mtanti commented 1 year ago

https://github.com/Nudin/LexData/blob/bbb0a198ea3fa2594c50952e73576f48b328a1e7/LexData/__init__.py#L90

lexeme["lexicalCategory"] == catLex never succeeds because lexeme["lexicalCategory"] is an item ID while catLex is a category label (like 'noun'). This results in an empty search result every time.