<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AA_or_an</id>
	<title>Module:A or an - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AA_or_an"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:A_or_an&amp;action=history"/>
	<updated>2026-06-14T08:47:54Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:A_or_an&amp;diff=470054&amp;oldid=prev</id>
		<title>Zoran: Moved page from wikipedia:en:Module:A or an</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:A_or_an&amp;diff=470054&amp;oldid=prev"/>
		<updated>2021-07-08T18:13:07Z</updated>

		<summary type="html">&lt;p&gt;Moved page from &lt;a href=&quot;/index.php?title=Wikipedia:en:Module:A_or_an&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Wikipedia:en:Module:A or an (page does not exist)&quot;&gt;wikipedia:en:Module:A or an&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local words = mw.loadData('Module:A or an/words')&lt;br /&gt;
&lt;br /&gt;
local lcVChars = 'aeiouà-æè-ïò-öø-üāăąēĕėęěĩīĭįıĳōŏőœũūŭůűų'&lt;br /&gt;
local ucVvChars = 'AEFHILMNORSXÀ-ÆÈ-ÏÒ-ÖØĀĂĄĒĔĖĘĚĨĪĬĮıĲŌŎŐŒÑĤĦĹĻĽĿŁŃŅŇŊŔŖŘŚŜŞ'&lt;br /&gt;
&lt;br /&gt;
local function findWord(s, t)&lt;br /&gt;
	for i, v in ipairs(t) do&lt;br /&gt;
		if mw.ustring.find(s, '^' .. v .. '$') then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(args)&lt;br /&gt;
	local s = args[1] and mw.text.trim(args[1])&lt;br /&gt;
	local pron = 'a'&lt;br /&gt;
	local ret = ''&lt;br /&gt;
	&lt;br /&gt;
	if s and s ~= '' then&lt;br /&gt;
		local origStr = s&lt;br /&gt;
		&lt;br /&gt;
		s = mw.ustring.gsub(s, '&amp;lt;/?[A-Za-z][^&amp;gt;]-&amp;gt;', '') -- Remove HTML tags&lt;br /&gt;
		s = mw.ustring.gsub(s, '%[%[[^%|]+%|(..-)%]%]', '%1') -- Remove wikilinks&lt;br /&gt;
		s = mw.ustring.gsub(mw.ustring.gsub(s, '%[%[', ''), '%]%]', '')&lt;br /&gt;
		s = mw.ustring.gsub(s, '^[&amp;quot;%$\'%(&amp;lt;%[%{¢-¥₠-₿]+', '') -- Strip some symbols at the beginning&lt;br /&gt;
		s = mw.ustring.match(s, '^%.?[0-9%u%l]+') or s -- Extract the first word&lt;br /&gt;
		&lt;br /&gt;
		if mw.ustring.find(s, '^[0-9]') then -- It begins with a number&lt;br /&gt;
			s = mw.ustring.match(s, '^[0-9]+') -- Extract the number&lt;br /&gt;
			if findWord(s, words.vNums) then -- '18' etc.&lt;br /&gt;
				pron = 'an'&lt;br /&gt;
			end&lt;br /&gt;
		elseif mw.ustring.match(s, '^[0-9%u]+$') then -- It looks like an acronym&lt;br /&gt;
			if mw.ustring.find(s, '^[' .. ucVvChars .. ']')&lt;br /&gt;
				and not findWord(s, words.cvAcronyms) -- Exclude 'NASA' etc.&lt;br /&gt;
				or findWord(s, words.vvAcronyms) -- 'UNRWA' etc.&lt;br /&gt;
			then&lt;br /&gt;
				pron = 'an'&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			s = mw.ustring.lower(s) -- Uncapitalize&lt;br /&gt;
			if mw.ustring.find(s, '^['.. lcVChars .. ']') then -- It begins with a vowel&lt;br /&gt;
				if not findWord(s, words.vcWords) -- Exclude 'euro' etc.&lt;br /&gt;
					or findWord(s, words.vvWords) -- But not 'Euler' etc.&lt;br /&gt;
				then&lt;br /&gt;
					pron = 'an'&lt;br /&gt;
				end&lt;br /&gt;
			elseif args.variety and mw.ustring.lower(args.variety) == 'us' -- 'herb' etc.&lt;br /&gt;
				and findWord(s, words.cvWordsUS)&lt;br /&gt;
				or findWord(s, words.cvWords) -- 'hour' etc.&lt;br /&gt;
			then&lt;br /&gt;
				pron = 'an'&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		ret = pron .. ' ' .. origStr&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return ret&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	return p._main(frame:getParent().args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>