Steps to replicate the issue:
- go to https://www.wikifunctions.org/view/en/Z35837 (which was made using the standard web UI)
- note that the JavaScript implementation fails
- note that the same implementation works on almost the same test, where the difference is that the language is explicitly constructed: https://www.wikifunctions.org/view/en/Z35820
What happens?:
Code implementations cannot de-reference language structures. So they cannot find equality to the same language with a different representation. So the wrong monolingual string was picked.
What should have happened instead?:
We need them de-referenced before they make it to code, whether they come from a Z11, Z31, Z60, ... etc
Then the JS implementation should pass this test.
We will be able to widely use code implementations to speed up natural language operations!