As of 2021-10-29, Lua access to Lexemes is enabled on the Beta cluster, but not in production. The Lua interface (i.e. which functions exist, what they’re called, which arguments they take and what they return, etc.), documented on doc.wikimedia.org, is mostly just a first draft – things that seemed like a good idea when they were first implemented. However, we should consider making some improvements before the full production rollout.
If you have any suggestions for improvements, or comments on things that aren’t so great in the current model, feel free to leave them here, either as comments or as subtasks.