Module:Belarusian

From RobotX
Revision as of 06:27, 19 February 2013 by Mediawiki>Wizardist
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Belarusian/doc

-- Some sandboxing for Belarusian

local t = {}

require "mw.ustring"

function t.isStartingVowel( input )
    vowels = { "а", "е", "ё", "і", "о", "у", "э", "ю", "я" }
    chr = mw.ustring.sub( input.args[1], 0, 1 )
    for _,i in pairs( vowels ) do
        if i == chr then
            return "yes"
        end
    end
end

return t