Content deleted Content added
No edit summary |
No edit summary Tag: Reverted |
||
Line 6:
end
-- Special cases for verb conjugation that don't follow the regular 's' or 'es' pattern, including 'has' to 'have'
local specialCases = {
go = "goes",
Line 30:
local pronoun = originalPronoun:lower() -- Use lowercase for logic
local verb = originalVerb:lower() -- Use lowercase for logic
local result = ""
-- Continuous tense (verbs ending in 'ing')
Line 36:
result = applyContinuousVerb(originalPronoun, originalVerb)
else
if pronoun == "he" or pronoun == "she" or pronoun == "it" then
verb = verb .. (needsEsEnding(verb) and "es" or "s")
end
elseif pronoun == "they" then
if verb:match("es$")
verb =
else▼
▲ verb = specialCases[verb] or verb
▲ if verb:match("es$") then
verb = verb:sub(1, -3)▼
end▼
end
end
Line 60 ⟶ 51:
end
--
if isAllCaps(originalPronoun) and isAllCaps(originalVerb) then
result = result:upper()
--
if verb == originalVerb:lower() then
result = originalPronoun .. " " .. (verb == "go" and "Go" or verb)▼
end
|