Steps to replicate the issue (include links if applicable):
- Use wbsearchentities to search for lexemes in a language which is only defined for lexemes, e.g. https://www.wikidata.org/w/api.php?action=wbsearchentities&type=lexeme&search=%D8%B1%D9%8F%D9%88%D9%8E%D8%A7&language=ha-arab
What happens?:
The search fails with the error Unrecognized value for parameter "language": ha-arab.
What should have happened instead?:
The search should find matching lexemes, e.g. https://www.wikidata.org/wiki/Lexeme:L8303
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):