Module:rad-stem: Difference between revisions

Jump to navigation Jump to search
m
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
mNo edit summary
mNo edit summary
Line 1: Line 1:
local export = {}
local export = {}
local getArgs = require('Module:Arguments').getArgs
local getArgs = require('Module:Arguments').getArgs
local m_table = require('Module:table')


local V = "aáàâảeéèiíìỉoóòøuúùûūủyýỳỷ"
local V = "aáàâảeéèiíìỉoóòøuúùûūủyýỳỷ"
Line 58: Line 59:


pos_data = { "noun", "verb" }
pos_data = { "noun", "verb" }
function table.contains(table, element)
  for _, value in pairs(table) do
    if value == element then
      return true
    end
  end
  return false
end


-- this function resolves all consonant clashes
-- this function resolves all consonant clashes
Line 612: Line 604:
local to_Return = ""
local to_Return = ""
if args[1] ~= nil and table.contains(pos_data, args[1]) then
if args[1] ~= nil and m_table.contains(pos_data, args[1]) then
local pos = args[1]
local pos = args[1]
else
else

Navigation menu