Module:Grammar: Difference between revisions

Jump to navigation Jump to search
16 bytes added ,  05:37, 3 September 2020
m
no edit summary
mNo edit summary
mNo edit summary
Line 37: Line 37:
     ["parentterm"] = pronouns[pronoun]["parentterm"] or genders[gender]["parentterm"]
     ["parentterm"] = pronouns[pronoun]["parentterm"] or genders[gender]["parentterm"]
               }
               }
 
local bmakeplural = false
parsedtext = string.gsub(frame.args[1], "=([^=]+)=", function(f)
parsedtext = string.gsub(frame.args[1], "=([^=]+)=", function(f)
local bmakeplural = false
  for a, b, c in string.gmatch(f, "(%w*)[:%.]?(['%w]*)(:?%w*)") do
  for a, b, c in string.gmatch(f, "(%w*)[:%.]?(['%w]*)(:?%w*)") do
   if b == nil or b == "" then
   if b == nil or b == "" then
Line 118: Line 117:


function p.test()
function p.test()
  text="=pluralize=man"
  text="=pluralize==pronouns.personTerm="
gender = "male"
gender = "male"
pronoun = ""
pronoun = ""

Navigation menu