Content deleted Content added
No edit summary |
No edit summary |
||
Line 14:
local function isAllCaps(s)
return s:upper() == s
end
-- Correctly applies 'is' or 'are' for continuous verbs based on pronoun, retaining input case
local function applyContinuousVerb(pronoun, verb)
if pronoun:lower() == "they" then
return pronoun .. " are " .. verb
else
return pronoun .. " is " .. verb
end
Line 22 ⟶ 31:
local result = ""
--
if verb:sub(-3) == "ing" then
▲ end
▲ result = originalPronoun .. " " .. aux .. " " .. originalVerb
else
-- Simple present tense for singular third-person
Line 53 ⟶ 58:
end
-- Preserve original case without converting to title case or uppercase, unless fully uppercase
if isAllCaps(originalPronoun) and isAllCaps(originalVerb) then
result = result:upper()
Line 64 ⟶ 69:
local originalPronoun = frame.args[1]
local originalVerb = frame.args[2]
return adjustVerb(originalPronoun, originalVerb) -- Adjust and return
end
|