<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Initial_consonant_mutation</id>
	<title>Initial consonant mutation - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.apertium.org/w/index.php?action=history&amp;feed=atom&amp;title=Initial_consonant_mutation"/>
	<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;action=history"/>
	<updated>2026-05-31T21:11:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=50550&amp;oldid=prev</id>
		<title>Bech: Link to French page</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=50550&amp;oldid=prev"/>
		<updated>2014-10-08T07:12:57Z</updated>

		<summary type="html">&lt;p&gt;Link to French page&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:12, 8 October 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;[[Mutation de la consonne initiale|En français]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;{{TOCD}}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;{{TOCD}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=34300&amp;oldid=prev</id>
		<title>Bech: reference shown</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=34300&amp;oldid=prev"/>
		<updated>2012-05-21T11:40:49Z</updated>

		<summary type="html">&lt;p&gt;reference shown&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 11:40, 21 May 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 168:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 168:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;  do thaigh&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;  do thaigh&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;== Notes ==&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;&amp;lt;references/&amp;gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;[[Category:Documentation]]&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;[[Category:Documentation]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=28269&amp;oldid=prev</id>
		<title>Bech: Documentation in English</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=28269&amp;oldid=prev"/>
		<updated>2011-09-03T18:34:51Z</updated>

		<summary type="html">&lt;p&gt;Documentation in English&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:34, 3 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 170:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 170:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;br /&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-deleted&quot;&gt;&lt;div&gt;[[Category:Documentation]]&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-context diff-side-added&quot;&gt;&lt;div&gt;[[Category:Documentation]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty diff-side-deleted&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-addedline diff-side-added&quot;&gt;&lt;div&gt;[[Category:Documentation in English]]&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bech</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=12644&amp;oldid=prev</id>
		<title>Francis Tyers: New page: {{TOCD}}  This page gives a brief overview of how initial consonant mutations are currently analysed, disambiguated and generated in Apertium. It uses as an example the &lt;code&gt;apertium-ga-g...</title>
		<link rel="alternate" type="text/html" href="https://wiki.apertium.org/w/index.php?title=Initial_consonant_mutation&amp;diff=12644&amp;oldid=prev"/>
		<updated>2009-05-25T18:08:13Z</updated>

		<summary type="html">&lt;p&gt;New page: {{TOCD}}  This page gives a brief overview of how initial consonant mutations are currently analysed, disambiguated and generated in Apertium. It uses as an example the &amp;lt;code&amp;gt;apertium-ga-g...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{TOCD}}&lt;br /&gt;
&lt;br /&gt;
This page gives a brief overview of how initial consonant mutations are currently analysed, disambiguated and generated in Apertium. It uses as an example the &amp;lt;code&amp;gt;apertium-ga-gd&amp;lt;/code&amp;gt; language pair.&lt;br /&gt;
&lt;br /&gt;
===Analysis===&lt;br /&gt;
&lt;br /&gt;
Analysis is taken care of by creating word-initial paradigms which simply replace the non-mutated forms with the mutated forms. For example for the initial consonant, &amp;#039;b&amp;#039;, which can be lenited as &amp;#039;bh&amp;#039; or eclipsed as &amp;#039;mb&amp;#039;, we get the following initial mutation paradigm:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;pardef n=&amp;quot;initial-b&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;b&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;b&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&lt;br /&gt;
      &amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;bh&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;b&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&lt;br /&gt;
      &amp;lt;e&amp;gt;&amp;lt;p&amp;gt;&amp;lt;l&amp;gt;mb&amp;lt;/l&amp;gt;&amp;lt;r&amp;gt;b&amp;lt;/r&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/e&amp;gt;&lt;br /&gt;
    &amp;lt;/pardef&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This can then be applied to a word, e.g. &amp;quot;bulc&amp;quot; (), like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;e lm=&amp;quot;bulc&amp;quot;&amp;gt;&amp;lt;par n=&amp;quot;initial-b&amp;quot;/&amp;gt;&amp;lt;i&amp;gt;u&amp;lt;/i&amp;gt;&amp;lt;par n=&amp;quot;bu/lc__n&amp;quot;/&amp;gt;&amp;lt;/e&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The initial mutation is &amp;#039;b&amp;#039;, and the word takes the &amp;lt;code&amp;gt;bu/lc__n&amp;lt;/code&amp;gt; paradigm. The problem with this method is that sometimes it can cause &amp;quot;over analysis&amp;quot;, but we can take care of this with disambiguation, see below.&lt;br /&gt;
&lt;br /&gt;
===Disambiguation===&lt;br /&gt;
&lt;br /&gt;
Disambiguation of initial-mutations can be done using [[constraint grammar]] (see the file &amp;lt;code&amp;gt;apertium-ga-gd.ga-gd.rlx&amp;lt;/code&amp;gt;). The apertium-tagger is not useful for this purpose as it cannot look at surface forms of words, only lexical units. A trivial illustrative example of how the constraint grammar can be used is presented below. Lets say we want to choose between a feminine possessive determiner and a masculine possessive determiner based on the type of mutation exhibited by the following noun, for example in the following two phrases:&amp;lt;ref&amp;gt;Note that this is not really relevant for Irish to Scots Gaelic as the surface forms of each are the same&amp;lt;/ref&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* a pheann, &amp;amp;mdash; &amp;#039;&amp;#039;his pen&amp;#039;&amp;#039;&lt;br /&gt;
* a haois &amp;amp;mdash; &amp;#039;&amp;#039;her age&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
Here the determiner, &amp;quot;a&amp;quot;, can be either masculine or feminine (that is, &amp;quot;his&amp;quot; or &amp;quot;her&amp;quot;). So, if we have the following input to the constraint grammar:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ^a/a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;mf&amp;gt;&amp;lt;pl&amp;gt;/a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;/a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;f&amp;gt;&amp;lt;sg&amp;gt;$ ^pheann/peann&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;/peann&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;pl&amp;gt;&amp;lt;gen&amp;gt;$&lt;br /&gt;
  ^a/a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;mf&amp;gt;&amp;lt;pl&amp;gt;/a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;/a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;f&amp;gt;&amp;lt;sg&amp;gt;$ ^haois/aois&amp;lt;n&amp;gt;&amp;lt;f&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So, first we define what we want to work with,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
LIST DetPos = (det pos);             # possessive determiner&lt;br /&gt;
&lt;br /&gt;
LIST hPro = (&amp;quot;&amp;lt;h.*&amp;gt;&amp;quot;r &amp;quot;[aeiou].*&amp;quot;r); # h-prothesis&lt;br /&gt;
LIST Len = (&amp;quot;&amp;lt;ph.*&amp;gt;&amp;quot;r &amp;quot;p.*&amp;quot;r);       # lenition&lt;br /&gt;
&lt;br /&gt;
SET DetPosF = DetPos | (f);          # feminine possessive determiner&lt;br /&gt;
SET DetPosM = DetPos | (m);          # masculine possessive determiner&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should be fairly straightforward, then we write rules that say &amp;quot;Choose the feminine possessive when the noun that follows is subject to h-prothesis, and the masculine possessive when the noun that follows is subject to lenition&amp;quot;,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SELECT DetPosF IF (1 hPro);&lt;br /&gt;
SELECT DetPosM IF (1 Len);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Applying this grammar gives:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ^a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;$ ^peann&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
  ^a&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p3&amp;gt;&amp;lt;f&amp;gt;&amp;lt;sg&amp;gt;$ ^oíche&amp;lt;n&amp;gt;&amp;lt;f&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The desired result.&lt;br /&gt;
&lt;br /&gt;
===Generation===&lt;br /&gt;
&lt;br /&gt;
;Overview&lt;br /&gt;
&lt;br /&gt;
Generation of initial mutations takes place in two files, where &amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt; is the code of the language that is being generated (&amp;lt;code&amp;gt;ga&amp;lt;/code&amp;gt; for Irish, &amp;lt;code&amp;gt;gd&amp;lt;/code&amp;gt; for Scottish Gaelic).&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;apertium-ga-gd.pre-&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;.t1x&amp;lt;/code&amp;gt; &amp;amp;mdash; Transfer rules which add tags defining the mutation to the beginning of words which should be mutated.&lt;br /&gt;
* &amp;lt;code&amp;gt;apertium-ga-gd.muta-&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;.dix&amp;lt;/code&amp;gt; &amp;amp;mdash; A post-generation dictionary which takes the tag and the initial letter of the word and outputs the mutated form.&lt;br /&gt;
&lt;br /&gt;
For example, when translating the phrase &amp;quot;do theach&amp;quot; (your house) from Irish to Scottish Gaelic, the result will be do &amp;lt;u&amp;gt;th&amp;lt;/u&amp;gt;aigh (where the initial mutation is marked by an underscore). The output of &amp;lt;code&amp;gt;apertium-transfer&amp;lt;/code&amp;gt; will be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ^do&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p2&amp;gt;&amp;lt;mf&amp;gt;&amp;lt;sg&amp;gt;$ ^taigh&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is then passed through &amp;lt;code&amp;gt;apertium-ga-gd.pre-gd&amp;lt;/code&amp;gt;, which adds a tag, &amp;lt;code&amp;gt;&amp;lt;l1&amp;gt;&amp;lt;/code&amp;gt; for lenition.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ^do&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p2&amp;gt;&amp;lt;mf&amp;gt;&amp;lt;sg&amp;gt;$ ^&amp;lt;l1&amp;gt;$^taigh&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The morphological generator then outputs the surface forms of the words, and appends an &amp;quot;alarm&amp;quot; signal to the mutation tag.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  do ~&amp;lt;l1&amp;gt;taigh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Finally, the mutation dictionary, &amp;lt;code&amp;gt;apertium-ga-gd.muta-gd.dix&amp;lt;/code&amp;gt;, replaces the string &amp;lt;code&amp;gt;~&amp;lt;l1&amp;gt;t&amp;lt;/code&amp;gt; with &amp;#039;th&amp;#039;, which is the lenited form of &amp;#039;t&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  do thaigh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;apertium-ga-gd.pre-&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;.t1x&lt;br /&gt;
&lt;br /&gt;
As mentioned above, the input to this stage is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ^do&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p2&amp;gt;&amp;lt;mf&amp;gt;&amp;lt;sg&amp;gt;$ ^taigh&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A simplified (although functioning) rule in this file might look something like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;pattern&amp;gt;&lt;br /&gt;
  &amp;lt;pattern-item n=&amp;quot;det&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;pattern-item n=&amp;quot;nom&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;/pattern&amp;gt;&lt;br /&gt;
&amp;lt;choose&amp;gt; &lt;br /&gt;
  &amp;lt;when&amp;gt; &amp;lt;!-- When the lemma of the determiner is &amp;quot;do&amp;quot;, &lt;br /&gt;
              apply lenition to the following noun --&amp;gt;&lt;br /&gt;
    &amp;lt;test&amp;gt;&lt;br /&gt;
      &amp;lt;equal&amp;gt;&lt;br /&gt;
        &amp;lt;clip pos=&amp;quot;1&amp;quot; side=&amp;quot;tl&amp;quot; part=&amp;quot;lem&amp;quot;/&amp;gt;&lt;br /&gt;
        &amp;lt;lit v=&amp;quot;do&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/equal&amp;gt;&lt;br /&gt;
     &amp;lt;/test&amp;gt;&lt;br /&gt;
     &amp;lt;out&amp;gt;&lt;br /&gt;
      &amp;lt;lu&amp;gt;&amp;lt;clip pos=&amp;quot;1&amp;quot; side=&amp;quot;tl&amp;quot; part=&amp;quot;whole&amp;quot;/&amp;gt;&amp;lt;/lu&amp;gt;&lt;br /&gt;
      &amp;lt;b/&amp;gt;&lt;br /&gt;
      &amp;lt;lu&amp;gt;&amp;lt;lit-tag v=&amp;quot;l1&amp;quot;/&amp;gt;&amp;lt;/lu&amp;gt;    &amp;lt;!-- Lenition --&amp;gt;&lt;br /&gt;
      &amp;lt;lu&amp;gt;&amp;lt;clip pos=&amp;quot;2&amp;quot; side=&amp;quot;tl&amp;quot; part=&amp;quot;whole&amp;quot;/&amp;gt;&amp;lt;/lu&amp;gt;&lt;br /&gt;
    &amp;lt;/out&amp;gt;&lt;br /&gt;
  &amp;lt;/when&amp;gt;&lt;br /&gt;
&amp;lt;/choose&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And the output will be, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  ^do&amp;lt;det&amp;gt;&amp;lt;pos&amp;gt;&amp;lt;p2&amp;gt;&amp;lt;mf&amp;gt;&amp;lt;sg&amp;gt;$ ^&amp;lt;l1&amp;gt;$^taigh&amp;lt;n&amp;gt;&amp;lt;m&amp;gt;&amp;lt;sg&amp;gt;&amp;lt;nom&amp;gt;$ &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;apertium-ga-gd.muta-&amp;lt;math&amp;gt;x&amp;lt;/math&amp;gt;.dix&lt;br /&gt;
&lt;br /&gt;
The input to this stage is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  do ~&amp;lt;l1&amp;gt;taigh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;rule&amp;quot;, or rather &amp;quot;entry&amp;quot; in the mutation dictionary will look like:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;e&amp;gt;&lt;br /&gt;
      &amp;lt;p&amp;gt;&lt;br /&gt;
        &amp;lt;l&amp;gt;&amp;lt;a/&amp;gt;&amp;lt;s n=&amp;quot;l1&amp;quot;/&amp;gt;t&amp;lt;/l&amp;gt;&lt;br /&gt;
        &amp;lt;r&amp;gt;th&amp;lt;/r&amp;gt;&lt;br /&gt;
      &amp;lt;/p&amp;gt;&lt;br /&gt;
      &amp;lt;par n=&amp;quot;alphabet&amp;quot;/&amp;gt; &lt;br /&gt;
    &amp;lt;/e&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, the alphabet is defined as a paradigm which for any given input letter, just outputs the letter unchanged. So this basically says, &lt;br /&gt;
&lt;br /&gt;
:&amp;quot;When we have the alarm symbol &amp;#039;~&amp;#039;, followed by a tag indicating lenition followed by a &amp;#039;t&amp;#039; and then any alphabetic character, output &amp;#039;th&amp;#039; followed by the next character&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The output of this stage is a correctly mutated phrase, &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  do thaigh&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>Francis Tyers</name></author>
		
	</entry>
</feed>