Dokumentation [visa] [redigera] [historik] [rensa sidcachen]
![]() |
This page documents the development version of the Lutil module. Since it is intended for an international audience, it is written in English, even as the development currently takes place on Swedish Wikipedia. |
Introduction
redigeraModule status
redigeraLanguage
redigeraThis module is intended to provide language-related functionality in a language-neutral manner. For practical reasons though, the Lua code is written using English-language function and variable names, inline commentary, and diagnostic messages (used for development only); the same applies to this module documentation.
Basic concepts
redigeraTechnical reference
redigeraSystem requirements
redigeraDiagnostic mode
redigeraSimulated mode
redigeraCalling conventions
redigeraExported variables
redigeraWhile implemented as variables, these are meant to be used as constants in your Lua code. As they are used also internally by the Qutil module, changing them may lead to unpredictable or erratic results, and is thus not recommended.
grammaticalCategoryClass
redigeralutil.grammaticalCategoryClass
The class of grammatical categories.
Exported functions
redigeraCode samples
redigeraOptimization
redigeraProcessing time
redigeraMemory requirements
redigeraData caching
redigeraModule internals
redigeraFuture development
redigeraBackwards compatibility
redigeraMeta-module considerations
redigeraTranslation
redigeraThis documentation may eventually be converted to NL-neutral source text, to be translated into any user's preferred target language.
Portability
redigeraSee also
redigeraCompatible modules
redigeraApplication ideas
redigeraLicense
redigeraThe software module described here, as well as this documentation, is available under CC0 (effectively public domain). To avoid confusion and duplicated work due to multiple forks or versions being distributed simultaneously, you are still both welcome and encouraged to contact the author to discuss potential coordination or cooperation.
Copyright © 2022 Anders Andersson |
-- The Lutil module (language processing utilities)
local diag = require("Modul:Sandlådan/SM5POR/Diag")
local qutil = require("Modul:Sandlådan/SM5POR/Qutil")
-- Exported functions and variables follow
local lutil = {}
lutil.diag = diag.ext
lutil.getSenseItems = function(sense)
return qutil.getEntityItems(sense, "P5137")
end
lutil.ltest = function(frame)
return diag.modtest(frame, "sense", lutil.getSenseItems)
end
return lutil