Module:CountryAdjectiveDemonym and Module:CountryAdjectiveDemonym/sandbox: Difference between pages
(Difference between pages)
imported>Gonnym simplified code |
imported>Gonnym No edit summary |
||
| Line 69: | Line 69: | ||
CountryAdjectiveDemonymDoLoadData() | CountryAdjectiveDemonymDoLoadData() | ||
end | end | ||
for adjective, noun in pairs(countryAdjectivesToNounsTable) do | for adjective, noun in pairs(countryAdjectivesToNounsTable) do | ||
if string.find(s, adjective) or string.find(s, noun) then | if string.find(s, adjective) or string.find(s, noun) then | ||
return noun | return noun | ||
end | end | ||