Content deleted Content added
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 18:
end
local function
if mw.ustring.find(text, '^[' .. ucVvChars .. ']')
and not findWord(text, words.cvAcronyms) -- Exclude 'NASA' etc.
Line 28:
end
local function
text = mw.ustring.match(text, '^[0-9]+') -- Extract the number
if findWord(text, words.vNums) then -- '18' etc.
Line 55:
if mw.ustring.find(text, '^[0-9]') then -- It begins with a number
article =
elseif mw.ustring.match(text, '^[0-9%u]+$') then -- It looks like an acronym
article =
else
text = mw.ustring.lower(text) -- Uncapitalize
Line 73:
end
end
ret = article .. ' ' ..
end
|