<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.agency/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://wiki.agency/index.php?action=history&amp;feed=atom&amp;title=Module%3AA_or_an"/>
		<link rel="alternate" type="text/html" href="https://wiki.agency/index.php?title=Module:A_or_an&amp;action=history"/>
		<updated>2026-04-28T13:47:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.1</generator>

	<entry>
		<id>https://wiki.agency/index.php?title=Module:A_or_an&amp;diff=742&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.agency/index.php?title=Module:A_or_an&amp;diff=742&amp;oldid=prev"/>
				<updated>2018-10-24T22:41:02Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:41, 24 October 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>https://wiki.agency/index.php?title=Module:A_or_an&amp;diff=741&amp;oldid=prev</id>
		<title>Swarm: Protected &quot;Module:A or an&quot;: Highly visible template ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://wiki.agency/index.php?title=Module:A_or_an&amp;diff=741&amp;oldid=prev"/>
				<updated>2018-08-11T00:18:57Z</updated>
		
		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/Module:A_or_an&quot; title=&quot;Module:A or an&quot;&gt;Module:A or an&lt;/a&gt;&amp;quot;: &lt;a href=&quot;/index.php?title=WP:High-risk_templates&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:High-risk templates (page does not exist)&quot;&gt;Highly visible template&lt;/a&gt; ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))&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 getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local words = require(&amp;#039;Module:A or an/words&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local find = mw.ustring.find&lt;br /&gt;
local gsub = mw.ustring.gsub&lt;br /&gt;
local lower = mw.ustring.lower&lt;br /&gt;
local match = mw.ustring.match&lt;br /&gt;
&lt;br /&gt;
local lcVChars = &amp;#039;aeiouà-æè-ïò-öø-üāăąēĕėęěĩīĭįıĳōŏőœũūŭůűų&amp;#039;&lt;br /&gt;
local ucVvChars = &amp;#039;AEFHILMNORSXÀ-ÆÈ-ÏÒ-ÖØĀĂĄĒĔĖĘĚĨĪĬĮıĲŌŎŐŒÑĤĦĹĻĽĿŁŃŅŇŊŔŖŘŚŜŞ&amp;#039;&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 match(s, &amp;#039;^&amp;#039; .. v .. &amp;#039;$&amp;#039;) 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]&lt;br /&gt;
	local pron = &amp;#039;a&amp;#039;&lt;br /&gt;
	local ret = &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	if s and s ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		s = gsub(s, &amp;#039;&amp;lt;%/?[A-Za-z]+[^&amp;gt;]*&amp;gt;&amp;#039;, &amp;#039;&amp;#039;) -- Remove HTML tags&lt;br /&gt;
		s = gsub(s, &amp;#039;%[%[[^%|]+%|(.-)%]%]&amp;#039;, &amp;#039;%1&amp;#039;) -- Remove wikilinks&lt;br /&gt;
		s = gsub(gsub(s, &amp;#039;%[%[&amp;#039;, &amp;#039;&amp;#039;), &amp;#039;%]%]&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
		s = gsub(s, &amp;#039;^[&amp;quot;%$\&amp;#039;%(&amp;lt;%[%{¢-¥₠-B]+&amp;#039;, &amp;#039;&amp;#039;) -- Strip some symbols at the beginning&lt;br /&gt;
		s = match(s, &amp;#039;^%.?[0-9%u%l]+&amp;#039;) or s -- Extract the first word&lt;br /&gt;
		&lt;br /&gt;
		if find(s, &amp;#039;^[0-9]&amp;#039;) then -- It begins with a number&lt;br /&gt;
			s = match(s, &amp;#039;^[0-9]*&amp;#039;) -- Extract the number&lt;br /&gt;
			if findWord(s, words[&amp;#039;vNums&amp;#039;]) then -- &amp;#039;18&amp;#039; etc.&lt;br /&gt;
				pron = &amp;#039;an&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		elseif match(s, &amp;#039;^[0-9%u]*$&amp;#039;) then -- It looks like an acronym&lt;br /&gt;
			if find(s, &amp;#039;^[&amp;#039; .. ucVvChars .. &amp;#039;]&amp;#039;)&lt;br /&gt;
				and not findWord(s, words[&amp;#039;cvAcronyms&amp;#039;]) -- Exclude &amp;#039;NASA&amp;#039; etc.&lt;br /&gt;
			then&lt;br /&gt;
				pron = &amp;#039;an&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			s = lower(s) -- Uncapitalize&lt;br /&gt;
			if find(s, &amp;#039;^[&amp;#039;.. lcVChars .. &amp;#039;]&amp;#039;) then -- It begins with a vowel&lt;br /&gt;
				if not findWord(s, words[&amp;#039;vcWords&amp;#039;]) -- Exclude &amp;#039;euro&amp;#039; etc.&lt;br /&gt;
					or findWord(s, words[&amp;#039;vvWords&amp;#039;]) -- But not &amp;#039;Euler&amp;#039; etc.&lt;br /&gt;
				then&lt;br /&gt;
					pron = &amp;#039;an&amp;#039;&lt;br /&gt;
				end&lt;br /&gt;
			elseif args.variety and lower(args.variety) == &amp;#039;us&amp;#039; -- &amp;#039;herb&amp;#039; etc.&lt;br /&gt;
				and findWord(s, words[&amp;#039;cvWordsUS&amp;#039;])&lt;br /&gt;
				or findWord(s, words[&amp;#039;cvWords&amp;#039;]) -- &amp;#039;hour&amp;#039; etc.&lt;br /&gt;
			then&lt;br /&gt;
				pron = &amp;#039;an&amp;#039;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		ret = pron .. &amp;#039; &amp;#039; .. args[1]&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;
	local args = getArgs(frame)&lt;br /&gt;
	return p._main(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Swarm</name></author>	</entry>

	</feed>