10,992
editsMore actions
no edit summary
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
end | end | ||
-- | -- This is a TWO-WAY conversion table of singular words and their corresponding | ||
-- plural form, for those that wouldn't be handled correctly by the automatic | |||
-- rules implemented further down below. Note that we don't need to cover most | |||
-- regular English words, as they're unlikely to ever be used with this module. | |||
-- The kind of stuff you want to add here is gameplay elements like classes, | |||
-- weapons, races, and so on. | |||
local specialPlurals = { | local specialPlurals = { | ||
-- Weapons | -- Weapons | ||
Line 145: | Line 147: | ||
end | end | ||
-- These functions implement the different output types. The elements will have | |||
-- already gone through processElement() at this point, so they only need to be | |||
-- glued together to produce the desired type of listing format. | |||
local converters = { | local converters = { | ||
sentence = function (elements) | sentence = function (elements) |