Module:etymology/specialized: Difference between revisions
Created page with "local export = {} local m_str_utils = require("Module:string utilities") local en_utilities_module = "Module:en-utilities" local etymology_module = "Module:etymology" local gsub = m_str_utils.gsub local insert = table.insert local pluralize = require(en_utilities_module).pluralize local upper = m_str_utils.upper -- This function handles all the messiness of different types of specialized borrowings. It should insert any -- borrowing-type-specific categories into `cate..." |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 44: | Line 44: | ||
if bortype == "calque" then | if bortype == "calque" then | ||
text, prep = "calque", "of" | text, prep = "calque", "of" | ||
inscat("terms calqued from") | |||
elseif bortype == "c" then | |||
text, prep = "calqued", "from" | |||
inscat("terms calqued from") | inscat("terms calqued from") | ||
elseif bortype == "partial-calque" then | elseif bortype == "partial-calque" then | ||
| Line 51: | Line 54: | ||
text, prep = "semantic loan", "from" | text, prep = "semantic loan", "from" | ||
inscat("semantic loans from") | inscat("semantic loans from") | ||
elseif bortype == "b" then | |||
text, prep = "borrowed", "from" | |||
inscat("terms borrowed from") | |||
elseif bortype == "transliteration" then | elseif bortype == "transliteration" then | ||
text, prep = "transliteration", "of" | text, prep = "transliteration", "of" | ||
| Line 93: | Line 99: | ||
end | end | ||
appendix = "Appendix:Glossary#" .. (appendix or text) | appendix = "wikt:Appendix:Glossary#" .. (appendix or text) | ||
if senseid then | if senseid then | ||