Jump to content

Module:EmojiWiktionaryCheck

From Wikipedia, the free encyclopedia
--returns true if the emoji has a Wiktionary entry
local c2s = {}
function c2s.c2s( frame )
	local getArgs = require('Module:Arguments').getArgs
	local args = getArgs(frame)
	--https://en.wiktionary.org/wiki/Category:Supplemental_Symbols_and_Pictographs_block
	local emojis1 = '๐Ÿค–๐Ÿงธ๐Ÿค‘๐Ÿค“๐Ÿฅฒ๐Ÿค๐Ÿคฏ๐Ÿฅบ๐Ÿฅฑ๐Ÿงต๐Ÿฅถ๐Ÿฅ€๐ŸคŸ๐Ÿค—๐Ÿคฆ๐Ÿฅต๐Ÿค”๐Ÿคก๐Ÿฅœ๐Ÿฅท๐Ÿฆ€๐Ÿงข'
	--https://en.wiktionary.org/wiki/Category:Emoticons_block
	local emojis2 = '๐Ÿ˜บ๐Ÿ˜ธ๐Ÿ˜Œ๐Ÿ˜‹๐Ÿ˜Š๐Ÿ˜‡๐Ÿ˜†๐Ÿ˜๐Ÿ˜ƒ๐Ÿ˜ฉ๐Ÿ˜ฎ๐Ÿ˜”๐Ÿ˜ฌ๐Ÿ˜๐Ÿ˜ ๐Ÿ˜€๐Ÿ˜‚๐Ÿ˜„๐Ÿ˜…๐Ÿ˜ˆ๐Ÿ˜‰๐Ÿ˜๐Ÿ˜Ž๐Ÿ˜๐Ÿ˜•๐Ÿ˜›๐Ÿ˜ค๐Ÿ˜ญ๐Ÿ˜ฑ๐Ÿ˜ณ๐Ÿ˜ถ๐Ÿ™ƒ๐Ÿ™„๐Ÿ™Œ๐Ÿ™'
	--https://en.wiktionary.org/wiki/Category:Miscellaneous_Symbols_and_Pictographs_block
	local emojis3 = '๐Ÿพ๐Ÿ›‡๐Ÿ”ด๐Ÿ”ต๐Ÿ”ž๐Ÿ‘‡๐Ÿ‘†๐Ÿผ๐Ÿณ๐Ÿฟ๐ŸŒฉ๐ŸŒง๐Ÿ’ฌ๐ŸŽข๐ŸŒ๐Ÿ‘๐Ÿ•Ž๐Ÿ’ญ๐ŸŒ—๐ŸŒˆ๐ŸŒ’๐ŸŒ”๐ŸŒ–๐ŸŒ˜๐ŸŒ™๐ŸŒ‘๐ŸŒ“๐ŸŒ•โ˜‰๐Ÿ’ง๐ŸŒฃ๐ŸŒค๐ŸŒฅ๐ŸŒฆ๐ŸŒจ๐ŸŒช๐ŸŒฌ๐ŸŒฎ๐ŸŒถ๐ŸŒน๐ŸŒฝ๐Ÿ€๐Ÿ๐Ÿ…๐Ÿ†๐Ÿ‹๐Ÿ‘๐Ÿ’๐Ÿด๐Ÿฝ๐ŸŽ‰๐ŸŽž๐ŸŽ ๐ŸŽก๐ŸŽค๐ŸŽฅ๐ŸŽจ๐ŸŽญ๐ŸŽฒ๐ŸŽต๐Ÿ๐Ÿ•๐Ÿ›โœพ๐Ÿ€๐Ÿ๐Ÿ๐Ÿ˜๐ŸŽ๐Ÿ‘€๐Ÿ‘‚๐Ÿ‘ƒ๐Ÿ‘‰๐Ÿ‘ˆ๐Ÿ‘Š๐Ÿ‘๐Ÿ‘ค๐Ÿ‘ฅ๐Ÿ‘ด๐Ÿ‘ต๐Ÿ’€๐Ÿ’…๐Ÿ’‰๐Ÿ’Š๐Ÿ’“๐Ÿ’”๐Ÿ’•๐Ÿ’˜๐Ÿ’š๐Ÿ’œ๐Ÿ’ก๐Ÿ’ข๐Ÿ’ค๐Ÿ’ฅ๐Ÿ’ฆ๐Ÿ’จ๐Ÿ’ฉ๐Ÿ’ช๐Ÿ’ซ๐Ÿ’ฏ$๐Ÿ’ธ๐Ÿ’ผ๐Ÿ“‹๐Ÿ“Œ๐Ÿ“๐Ÿ“Ž๐Ÿ“–๐Ÿ“š๐Ÿ“๐Ÿ“ž๐Ÿ“ ๐Ÿ“ข๐Ÿ“ฃ๐Ÿ”€๐Ÿ”๐Ÿ”‚๐Ÿ”…๐Ÿ”†๐Ÿ”‡๐Ÿ”ˆ๐Ÿ”‹๐Ÿ”๐Ÿ”Ž๐Ÿ”‘๐Ÿ”’๐Ÿ”“๐Ÿ””๐Ÿ”•๐Ÿ”—๐Ÿ”˜๐Ÿ”™๐Ÿ”š๐Ÿ”œ๐Ÿ”๐Ÿ”ฅ๐Ÿ”ง๐Ÿ”ช๐Ÿ”ฌ๐Ÿ”ญ๐Ÿ”ฐโœเฅ๐Ÿ•Š๐Ÿ•๐Ÿ•ฏโ˜ โ˜Ž๐Ÿ‘Œ๐Ÿ‘๐Ÿ‘Ž๐Ÿ–ค๐Ÿ’พ๐Ÿ—‹๐Ÿ—‘๐Ÿ—•๐Ÿ—–๐Ÿ——๐Ÿ—™๐Ÿ—š๐Ÿ—›๐Ÿ—ฃ๐Ÿ—ฆ ๐Ÿ—ง๐Ÿ—ฎโœ—โœ“๐Ÿ—ฟ'
	--https://en.wiktionary.org/wiki/Category:Supplemental_Symbols_and_Pictographs_block
	emojis4 = '๐Ÿค–๐Ÿงธ๐Ÿค‘๐Ÿค“๐Ÿฅฒ๐Ÿค๐Ÿคฏ๐Ÿฅบ๐Ÿฅฑ๐Ÿงต๐Ÿฅถ๐Ÿฅ€๐ŸคŸ๐Ÿค—๐Ÿคฆ๐Ÿฅต๐Ÿค”๐Ÿคก๐Ÿฅœ๐Ÿฅท๐Ÿฆ€๐Ÿงข'
	--https://en.wiktionary.org/wiki/Category:Symbols_and_Pictographs_Extended-A_block
	emojis5 = '๐Ÿชฉ๐Ÿซก๐Ÿช‘๐Ÿซถ๐Ÿซฐ๐Ÿฉธ'
	local emojis = emojis1 .. emojis2 .. emojis3 .. emojis4 .. emojis5
	if emojis:match(args[1])
	then
		return true
	else
		return false
	end
end
return c2s