Hello, you have come here looking for the meaning of the word
Module:User:kc kennylau/cats. In DICTIOUS you will not only get to know all the dictionary meanings for the word
Module:User:kc kennylau/cats, but we will also tell you about its etymology, its characteristics and you will know how to say
Module:User:kc kennylau/cats in singular and plural. Everything you need to know about the word
Module:User:kc kennylau/cats you have here. The definition of the word
Module:User:kc kennylau/cats will help you to be more precise and correct when speaking or writing your texts. Knowing the definition of
Module:User:kc kennylau/cats, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
local export = {}
local m_languages = require("Module:languages")
local m_families = require("Module:families")
--To call this function: {{subst:#invoke:User:kc_kennylau/cats|prefix_or_suffix}}
function export.prefix_or_suffix(frame)
pagename = mw.title.getCurrentTitle().text
pagename = mw.text.split(pagename,' ')
n = #pagename
result = '{{' .. pagename:sub(1,#pagename-2) .. 'cat'
result = result .. '|' .. m_languages.getByCanonicalName(table.concat(pagename,' ',1,n-4)):getCode()
result = result .. '|' .. mw.ustring.gsub(pagename,'','')
if pagename == "words" then
result = result .. '}}'
else
result = result .. '|pos=' .. mw.ustring.gsub(pagename,'s$','') .. '}}'
end
return result
end
--To call this function: {{subst:#invoke:User:kc_kennylau/cats|deriv}}
function export.deriv(frame)
pagename = mw.title.getCurrentTitle().text
pagename = mw.text.split(pagename,' terms derived from ')
from = m_languages.getByCanonicalName(pagename):getCode()
to = m_languages.getByCanonicalName(pagename)
if to then to = to:getCode() else to = m_families.getFamilyByCanonicalName(mw.ustring.gsub(pagename,' languages$','')):getCode() end
result = '{{derivcatboiler|' .. from .. '|' ..to .. '}}'
return result
end
--To call this function: {{subst:#invoke:User:kc_kennylau/cats|sv_compound}}
function export.sv_compound(frame)
pagename = mw.ustring.gsub(mw.title.getCurrentTitle().text,'Swedish compounds with ','')
return '{{sv-compoundcat|' .. pagename .. '}}'
end
--To call this function: {{subst:#invoke:User:kc_kennylau/cats|topiccat}}
function export.topiccat(frame)
pagename = mw.title.getCurrentTitle().text
pagename = mw.text.split(pagename,':')
pagename = table.concat(pagename,'|')
return '{{topic cat|' .. pagename .. '}}'
end
return export