Dokumentation [visa] [redigera] [historik] [rensa sidcachen]


Introduction

redigera

Module status

redigera

Language

redigera

This 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

redigera

Technical reference

redigera

System requirements

redigera

Diagnostic mode

redigera

Simulated mode

redigera

Calling conventions

redigera

Exported variables

redigera

While 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

redigera

lutil.grammaticalCategoryClass

The class of grammatical categories.

Exported functions

redigera

Code samples

redigera

Optimization

redigera

Processing time

redigera

Memory requirements

redigera

Data caching

redigera

Module internals

redigera

Future development

redigera

Backwards compatibility

redigera

Meta-module considerations

redigera

Translation

redigera

This documentation may eventually be converted to NL-neutral source text, to be translated into any user's preferred target language.

Portability

redigera

See also

redigera

Compatible modules

redigera

Application ideas

redigera

License

redigera

The 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.

-- 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