<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://salisford.net/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://salisford.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AA_or_an"/>
	<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:A_or_an&amp;action=history"/>
	<updated>2026-05-04T08:56:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://salisford.net/index.php?title=Module:A_or_an&amp;diff=622&amp;oldid=prev</id>
		<title>Cascadia: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:A_or_an&amp;diff=622&amp;oldid=prev"/>
		<updated>2023-04-05T14:38:42Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:38, 5 April 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&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>Cascadia</name></author>
	</entry>
	<entry>
		<id>https://salisford.net/index.php?title=Module:A_or_an&amp;diff=621&amp;oldid=prev</id>
		<title>wp&gt;Nardog at 19:06, 18 May 2020</title>
		<link rel="alternate" type="text/html" href="https://salisford.net/index.php?title=Module:A_or_an&amp;diff=621&amp;oldid=prev"/>
		<updated>2020-05-18T19:06:15Z</updated>

		<summary type="html">&lt;p&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>wp&gt;Nardog</name></author>
	</entry>
</feed>