File Coverage

blib/lib/Lingua/GA/Gramadoir.pm
Criterion Covered Total %
statement 4222 5370 78.6
branch 647 960 67.4
condition 18 51 35.2
subroutine 45 52 86.5
pod 8 41 19.5
total 4940 6474 76.3


line stmt bran cond sub pod time code
1             package Lingua::GA::Gramadoir;
2              
3 1     1   3167 use 5.008;
  1         4  
  1         42  
4 1     1   6 use strict;
  1         1  
  1         69  
5 1     1   6 use warnings;
  1         2  
  1         32  
6              
7 1     1   5 use Carp;
  1         2  
  1         97  
8 1     1   5 use File::Spec;
  1         2  
  1         19  
9 1     1   1156 use Storable;
  1         3939  
  1         73  
10 1     1   1208 use Memoize;
  1         2573  
  1         56  
11 1     1   991 use Encode qw(decode from_to);
  1         13214  
  1         104  
12 1     1   1046 use String::Approx qw(amatch adist);
  1         5684  
  1         103  
13 1     1   10 use Lingua::GA::Gramadoir::Languages;
  1         2  
  1         48  
14              
15             our $VERSION = '0.70';
16 1     1   6 use vars qw(@FOCAIL @MORPH @PUREMORPH @TOKEN %EILE %EARRAIDI %NOCOMBO %POS %SOP %GRAMS %MESSAGES %IGNORE $lh);
  1         2  
  1         227971  
17              
18             memoize('tag_one_word', TIE => [ 'Memoize::ExpireLRU',
19             CACHESIZE => 5000,
20             ]);
21              
22             =head1 NAME
23              
24             Lingua::GA::Gramadoir - Check the grammar of Irish language text
25              
26             =head1 SYNOPSIS
27              
28             use Lingua::GA::Gramadoir;
29              
30             my $gr = new Lingua::GA::Gramadoir;
31              
32             my $errors = $gr->grammatical_errors( $text );
33             foreach my $error (@$errors) {
34             # process $error appropriately
35             }
36              
37             =head1 DESCRIPTION
38              
39             This module contains the code for segmentation, spell checking,
40             part-of-speech tagging, and grammar checking used by "An GramadEir",
41             an open-source grammar and style checker that can be used
42             with vim, emacs, OpenOffice, or through a command-line interface.
43             An GramadEir is intended as a platform for the development of
44             sophisticated natural language processing tools for languages with
45             limited computational resources.
46              
47             The Perl code contained in this module is generated automatically
48             from a higher-level representation of the grammatical rules
49             and should not be edited directly. Anyone interested in helping
50             improve the lexicon or the rule sets should download the
51             developers' pack from the An GramadEir web site:
52             L.
53              
54             =head1 CONSTRUCTOR
55              
56             =over 4
57              
58             =item new %PARAMS
59              
60             Constructs an instance of the grammar checker and loads the lexicon
61             into memory. It should only be called once. Options may be specified
62             by passing a hash containing any of the following keys:
63              
64             fix_spelling => 0
65              
66             Suggest replacements for misspelled or unknown words.
67              
68             use_ignore_file => 0
69              
70             Read a file containing words to be ignored when checking spelling and grammar.
71              
72             unigram_tagging => 1
73              
74             Resolve ambiguous part of speech according to frequency. This should
75             be set to false only for debugging purposes because the pattern matching
76             for grammatical errors relies on complete disambiguation.
77              
78             interface_language => ""
79              
80             Specify the language of output messages
81             (B necessarily the language of the text to be checked).
82             With the default value, Locale::Maketext attempts to determine
83             the correct language to use based on things like your
84             environment variables.
85              
86             input_encoding => 'ISO-8859-1'
87              
88             Specify the encoding for all texts passed to one of the module's exported
89             functions. There is no currently no way to change the encoding of
90             the data returned by the exported functions (always encoded as perl strings).
91              
92             =back
93              
94             =cut
95              
96             sub new {
97 1     1 1 386 my $invocant = shift;
98 1   33     6 my $class = ref($invocant) || $invocant;
99 1         42 my $self = {
100             fix_spelling => 0,
101             use_ignore_file => 0,
102             unigram_tagging => 1,
103             interface_language => '',
104             input_encoding => 'ISO-8859-1',
105             @_,
106             };
107              
108 1 50       4 if ($self->{'interface_language'}) {
109 1         8 $lh = Lingua::GA::Gramadoir::Languages->get_handle($self->{'interface_language'});
110             }
111             else {
112 0         0 $lh = Lingua::GA::Gramadoir::Languages->get_handle();
113             }
114 1 50       175 croak 'Could not set interface language' unless $lh;
115              
116 1         6 ( my $datapath ) = __FILE__ =~ /(.*)\.pm/;
117 1         1 my $ref;
118 1         4 my $errormsg = gettext('%s: problem reading the database\n',
119             gettext('An Gramadoir'));
120 1         322 eval {$ref = retrieve(File::Spec->catfile($datapath, 'eile.hash'))};
  1         25  
121 1 50 33     114000 croak $errormsg if ($@ or !$ref);
122 1         147623 %EILE = %$ref;
123 1         19293 eval {$ref = retrieve(File::Spec->catfile($datapath, 'earraidi.hash'))};
  1         42  
124 1 50 33     56176 croak $errormsg if ($@ or !$ref);
125 1         6070 %EARRAIDI = %$ref;
126 1         609 eval {$ref = retrieve(File::Spec->catfile($datapath, 'nocombo.hash'))};
  1         39  
127 1 50 33     2996 croak $errormsg if ($@ or !$ref);
128 1         705 %NOCOMBO = %$ref;
129 1         93 eval {$ref = retrieve(File::Spec->catfile($datapath, 'pos.hash'))};
  1         28  
130 1 50 33     422 croak $errormsg if ($@ or !$ref);
131 1         52 %POS = %$ref;
132 1         65 %SOP = reverse %POS;
133 1         7 eval {$ref = retrieve(File::Spec->catfile($datapath, '3grams.hash'))};
  1         13  
134 1 50 33     8815 croak $errormsg if ($@ or !$ref);
135 1         9538 %GRAMS = %$ref;
136 1         1318 eval {$ref = retrieve(File::Spec->catfile($datapath, 'messages.hash'))};
  1         34  
137 1 50 33     3827 croak $errormsg if ($@ or !$ref);
138 1         48 %MESSAGES = %$ref;
139 1         9 for my $i (0 .. 6) {
140 7         19 eval {$ref = retrieve(File::Spec->catfile($datapath, "focail$i.hash" ) )};
  7         197  
141 7 50 33     482437 croak $errormsg if ($@ or !$ref);
142 7         48 push @FOCAIL, $ref;
143             }
144 1         3 eval {$ref = retrieve(File::Spec->catfile($datapath, 'token.hash'))};
  1         28  
145 1 50 33     212 croak $errormsg if ($@ or !$ref);
146 1         5 @TOKEN = @$ref;
147 1         6 foreach my $rule (@TOKEN) {
148 23         32 my $patt = $rule->{'patt'};
149 23         423 $rule->{'compiled'} = qr/$patt/;
150 23         65 $rule->{'tail'} = substr($rule->{'tag'},1,1);
151             }
152 1         3 eval {$ref = retrieve(File::Spec->catfile($datapath, 'morph.hash'))};
  1         17  
153 1 50 33     2628 croak $errormsg if ($@ or !$ref);
154 1         39 @MORPH = @$ref;
155 1         4 foreach my $rule (@MORPH) {
156 556         993 my $patt = $rule->{'patt'};
157 556         8103 $rule->{'compiled'} = qr/$patt/;
158 556         1105 $patt = $rule->{'rootpos'};
159 556 100       1492 if ($patt =~ m/^<\.([+*])?>$/) {
160 274         496 $rule->{'poscompiled'} = ''; # for speed
161             }
162             else {
163 282         650 $patt =~ s/\./[^>]/g;
164 282         886 $patt =~ s/>$/\/?>/;
165 282         2190 $rule->{'poscompiled'} = qr/$patt/;
166             }
167 556 100       1808 push @PUREMORPH, $rule if ($rule->{'level'} == -1);
168             }
169              
170 1 50       8 if ($self->{'use_ignore_file'}) {
171 0   0     0 my $homedir = $ENV{HOME} || $ENV{LOGDIR}; # || (getpwuid($>))[7];
172 0 0       0 if (open (DATAFILE, File::Spec->catfile( $homedir, '.neamhshuim' ))) {
173 0         0 while () {
174 0         0 chomp;
175 0 0       0 carp gettext('%s: `%s\' corrupted at %s\n',
176             gettext('An Gramadoir'), ".neamhshuim", $.) if /^$/;
177 0         0 $IGNORE{$_}++;
178             }
179             }
180             }
181              
182 1         54 return bless $self, $class;
183             }
184              
185             sub gettext
186             {
187 490     490 0 2180 my ( $string, @rest ) = @_;
188              
189 490         1369 $string =~ s/\[/~[/g;
190 490         1334 $string =~ s/\]/~]/g;
191 490         1199 $string =~ s/\%s/[_1]/;
192 490         1503 $string =~ s/\%s/[_2]/;
193 490         997 $string =~ s/\%s/[_3]/;
194 490         930 $string =~ s/\\n$/\n/;
195 490         3065 $string =~ s#\\/\\([1-9])\\/#/[_$1]/#;
196 490         1361 $string =~ s#\\/([^_\\]+)\\/#/$1/#;
197              
198 490         4440 return $lh->maketext($string, @rest);
199             }
200              
201             ##############################################################################
202              
203             =head1 METHODS
204              
205             =over
206              
207             =item get_sentences TEXT
208              
209             Splits the input TEXT up into sentences and returns a reference to an
210             array containing the sentences.
211              
212             =cut
213              
214             ##############################################################################
215              
216             # approximates "abairti" from bash version
217             # General philosophy is that it is *not* the job of the grammar checker
218             # to filter incoming texts (of, say, TeX or SGML markup). On the other hand,
219             # SGML-like markup *must* be stripped so it doesn't interfere with
220             # the real work of the grammar checker.
221             sub get_sentences
222             {
223 0     0 1 0 my ( $self, $text ) = @_;
224 0 0       0 return undef unless defined $text;
225 0         0 eval {from_to($text,$self->{'input_encoding'},'ISO-8859-1') };
  0         0  
226             # TRANSLATORS: "conversion" here means conversion between character encodings
227 0 0       0 croak gettext('conversion from %s is not supported',
228             $self->{'input_encoding'}) if $@;
229 0         0 my $answer = get_sentences_real($text);
230 0         0 map{$_ = decode('ISO-8859-1', $_)} @$answer;
  0         0  
231             # foreach my $s (@$answer) {
232             # $s = decode('ISO-8859-1', $s);
233             # }
234 0         0 return $answer;
235             }
236              
237             my $BD="\001";
238             my $NOBD="\002";
239             sub get_sentences_real
240             {
241 1     1 0 3 my $sentences = [];
242              
243 1         3 for ($_[0]) {
244 1         5 s/^\s+//;
245 1         43 s/<[^>]*>/ /g; # naive; see comments above
246 1         42 s/\\[tnvfr]/ /g;
247 1         43 s/&/&/g; # this one first!
248 1         44 s/
249 1         45 s/>/>/g;
250 1         49 s/$NOBD//g;
251 1         57 s/$BD//g;
252 1         7 giorr ( $_ );
253 1         3642 s/([^$NOBD][.?!][]"')}]*)[ \t\n]+/$1$BD/g;
254 1         95 s/"/"/g; # ' ok (note " in prev line)
255 1         2196 s/\s+/ /g;
256 1         109 s/$NOBD//g;
257 1         363 @$sentences = split /$BD/;
258             }
259              
260 1         11 return $sentences;
261             }
262              
263             # two arguments; first is word to be tagged, 2nd is string of grammatical bytes
264             sub add_grammar_tags
265             {
266 1690     1690 0 3097 my ( $self, $word, $grambytes ) = @_;
267 1690         3139 my $tagz = $self->get_grammar_tags($grambytes);
268 1690         2064 my $ans;
269 1690 100       3794 if ( length($grambytes) == 1) {
270 843         2888 $tagz =~ m/^<([A-Z])/;
271 843         2724 $ans = $tagz.$word."";
272             }
273             else {
274 847         4092 $tagz =~ s/>/\/>/g;
275 847         2478 $ans = "".$tagz."".$word."";
276             }
277 1690         7126 return $ans;
278             }
279              
280             # convert grammar bytes into string of tags like ""
281             sub get_grammar_tags
282             {
283 3444     3444 0 5008 my ( $self, $grambytes ) = @_;
284              
285 3444         4208 my $ans='';
286 3444         10451 foreach my $byte (split //, $grambytes) {
287 6107         20604 my $tag = $POS{$byte};
288 6107 50       9635 if (defined($tag)) {
289 6107         14838 $ans = $ans.$tag;
290             }
291             else {
292 0         0 carp gettext('%s: illegal grammatical code\n', gettext('An Gramadoir'));
293             }
294             }
295 3444 50       8713 carp gettext('%s: no grammar codes: %s\n', gettext('An Gramadoir'), "x") unless ($ans);
296 3444         8900 return $ans;
297             }
298              
299             # even though not called explicitly in this module,
300             # these functions are called indirectly to implement
301             # \l and \L in morphological rules; see Makefile.PL.in
302             sub mylc {
303 206     206 0 398 my ($string) = @_;
304 206         404 $string =~ tr/A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}/a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}/;
305 206         972 return $string;
306             }
307              
308             sub mylcfirst {
309 203     203 0 647 my ($string) = @_;
310 203         1065 $string =~ s/^(.)(.*)$/mylc($1).$2/e;
  203         708  
311 203         2437 return $string;
312             }
313              
314             sub clean_lookup
315             {
316 2111     2111 0 2877 my ( $self, $current ) = @_;
317              
318 2111         4177 for my $href ( @FOCAIL ) {
319 4771 100       16400 if ( exists($href->{$current}) ) {
320 1754         5461 return $self->get_grammar_tags($href->{$current});
321             }
322             }
323 357         1024 return "";
324             }
325              
326             # look up in the hash tables FOCAIL, EILE, EARRAIDI consecutively
327             # same arguments, return conventions as tag_recurse, except
328             # no maximum depth set since this doesn't recurse.
329             sub lookup
330             {
331 69     69 0 140 my ( $self, $original, $current, $level, $posans ) = @_;
332              
333 69         163 $$posans = $self->clean_lookup($current);
334 69         91 my $ans;
335 69 100       185 if ($$posans) {
336 7 100       35 if ( $level == 0 ) {
    100          
    100          
337 1         6 $ans = "".$original."";
338             }
339             elsif ( $level == 1 ) {
340 1         4 $ans = "".$original."";
341             }
342             elsif ( $level == 2 ) {
343 1         5 $ans = "".$original."";
344             }
345             else {
346             # -1 will only occur when tagging as compound and
347             # recursing on the two components, in which case
348             # (for now), the tags don't matter
349 4         8 $ans = '';
350             }
351 7         22 return $ans;
352             }
353 62         94 $$posans = '';
354 62 100       227 if ( exists($EILE{$current}) ) {
355 6         15 my $correction = $EILE{$current};
356 6 100       27 if ( $level == -1 ) {
    100          
    100          
357 3         13 $ans = "".$original."";
358             }
359             elsif ( $level == 0 ) {
360 1         7 $ans = "".$original."";
361             }
362             elsif ( $level == 1 ) {
363 1         4 $ans = "".$original."";
364             }
365             else {
366 1         9 $ans = "".$original."";
367             }
368 6         21 return $ans;
369             }
370 56 100       175 if ( exists($EARRAIDI{$current}) ) {
371 3         11 my $correction = $EARRAIDI{$current};
372 3 50       14 if ( $level == -1 ) {
373 3         15 $ans = "".$original."";
374             }
375             else {
376 0         0 $ans = "".$original."";
377             }
378 3         11 return $ans;
379             }
380 53         133 return "";
381             }
382              
383             # note use of "tag_recurse" on the conjectural pieces below;
384             # this is (primarily) to deal with capitalization of the halves.
385             # definitely *don't* want to call full tag on the two pieces or
386             # else *this* function will recurse
387             sub tag_as_compound
388             {
389 6     6 0 17 my ( $self, $word ) = @_;
390 6         12 my $dummy;
391 6 100       31 if ($word =~ m/^([^-]+)-(.*)$/) {
392 1         7 my $l = $1;
393 1         5 my $r = $2;
394 1         8 my $t1 = $self->tag_recurse( $l, $l, -1, \$dummy, 2 );
395 1         6 my $t2 = $self->tag_recurse( $r, $r, -1, \$dummy, 2 );
396 1 50 33     18 if ($t1 && $t2) {
397 1 50 33     12 if ($t1 !~ m/
398 0         0 return "".$word."";
399             }
400             else {
401 1         8 return "".$word."";
402             }
403             }
404             }
405             else {
406 5         14 my $len = length($word);
407 5         28 for (my $i = 3; $i < $len-2; $i++) { # i=len of left
408 9         35 my $l = substr($word, 0, $i);
409 9         24 my $r = substr($word, $i, $len - $i);
410 9 100 33     90 if (!exists($NOCOMBO{$l}) &&
411             !exists($NOCOMBO{$r})) {
412 7         37 my $tl = $self->tag_recurse($l,$l,-1,\$dummy,2);
413 7         40 my $tr = $self->tag_recurse($r,$r,-1,\$dummy,2);
414 7 100 100     69 if ( $tl && $tr ) {
415 1 50 33     11 if ($tl !~ m/
416 1         7 return "".$word."";
417             }
418             else {
419 0         0 return "".$word."";
420             }
421             }
422             }
423             }
424             }
425 4         12 return "";
426             }
427              
428             sub tag_as_near_miss
429             {
430 4     4 0 11 my ( $self, $word ) = @_;
431              
432 4 50       18 if ($self->{'fix_spelling'}) {
433 4         14 my $wordlen = length($word);
434 4 100       15 if ($wordlen > 2) {
435 3         9 for my $href ( @FOCAIL ) {
436 15         39 my %matches;
437 15         36 my $dist = "1";
438 15 100       147 if ($word =~ m/[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]/) {
439 7         55 $dist =~ s/$/ i/;
440             }
441 15         100 for (my $i = 0; $i < $wordlen-1; $i++) {
442 103         160 my $perm = $word;
443 103         2023 $perm =~ s/(.{$i})(.)(.)/$1$3$2/;
444 103 100       582 $matches{$perm}++ if (exists($href->{$perm}));
445             }
446 15         376373 for (amatch($word, [ $dist, "I0S0" ], (keys %$href))) {
447 0 0       0 $matches{$_}++ if (length($_)==$wordlen-1);
448             }
449 15         1347502 for (amatch($word, [ $dist, "D0S0" ], (keys %$href))) {
450 0 0       0 $matches{$_}++ if (length($_)==$wordlen+1);
451             }
452 15         1287349 for (amatch($word, [ $dist, "D0I0" ], (keys %$href))) {
453 0 0       0 $matches{$_}++ if (length($_)==$wordlen);
454             }
455 15         1060385 my $suggs = join(', ', (keys %matches));
456 15 100       211 return "$word" if $suggs;
457             }
458             }
459             }
460 3         17 return "";
461             }
462              
463             sub find_bad_three_grams
464             {
465 3     3 0 11 my ( $self, $word ) = @_;
466              
467 3         22 $word =~ s/^/
468 3         14 $word =~ s/$/>/;
469 3         11 my $end = length($word) - 2;
470 3         15 for (my $i = 0; $i < $end; $i++) {
471 8         16 my $cand = substr($word, $i, 3);
472 8 100       34 if (!exists($GRAMS{$cand})) {
473 3         10 $cand =~ tr/<>/^$/;
474 3         8 $word =~ tr/<>//d;
475 3         23 return "$word";
476             }
477             }
478 0         0 return "";
479             }
480              
481             sub tag_one_word_clean
482             {
483 1706     1706 0 2918 my ( $self, $word ) = @_;
484              
485 1706         5007 my $ans = $self->clean_tag_recurse($word, 4);
486 1706 100       4480 if ($ans) {
487             # sort -u, plus take out if there are others
488 1690         2700 my %tempseen;
489 1690         8646 while ($ans =~ m/(<[^>]+>)/g) {
490 3077         10806 my $cod = $SOP{$1};
491 3077 50       6741 if (defined($cod)) {
492 3077         18368 $tempseen{$cod}++;
493             }
494             else {
495 0         0 carp gettext('%s: illegal grammatical code\n',
496             gettext('An Gramadoir'));
497             }
498             }
499 1690         8036 my $codez = join('', sort(keys %tempseen));
500 1690 100       6111 $codez =~ s/\177// if (length($codez) > 1);
501 1690         4834 $ans = $self->add_grammar_tags($word, $codez);
502             }
503 1706         4781 return $ans;
504             }
505              
506             # takes a single word as an argument and returns it tagged, without fail
507             # e.g. it will get something like neamhword if it is unknown
508             sub tag_one_word
509             {
510             my ( $self, $word ) = @_;
511              
512             if ($self->{'use_ignore_file'}) {
513             return "".$word."" if ( exists($IGNORE{$word}) );
514             }
515             my $ans = $self->tag_one_word_clean($word);
516             return $ans if $ans;
517             my $dummy;
518             $ans = $self->tag_recurse($word, $word, -1, \$dummy, 6);
519             return $ans if $ans;
520             $ans = $self->tag_as_compound($word);
521             return $ans if $ans;
522             $ans = $self->tag_as_near_miss($word);
523             return $ans if $ans;
524             $ans = $self->find_bad_three_grams($word);
525             return $ans if $ans;
526             return "$word";
527             }
528              
529             ##############################################################################
530              
531             =item tokenize TEXT
532              
533             Splits the input TEXT up into orthographic words and returns a reference to an
534             array containing the words.
535              
536             =cut
537              
538             ##############################################################################
539              
540              
541             sub tokenize
542             {
543 0     0 1 0 my ( $self, $text ) = @_;
544 0 0       0 return undef unless defined $text;
545 0         0 eval {from_to($text,$self->{'input_encoding'},'ISO-8859-1') };
  0         0  
546 0 0       0 croak gettext('conversion from %s is not supported',
547             $self->{'input_encoding'}) if $@;
548              
549 0         0 my $answer = [];
550 0         0 my $sentences = get_sentences_real($text);
551 0         0 foreach my $sentence (@$sentences) {
552 0         0 $sentence = $self->tokenize_real($sentence);
553 0         0 push @$answer, $1 while ($sentence =~ m/<[A-Zc][^>]*>([^<]*)<\/[A-Zc]>/g);
554             }
555 0         0 foreach my $s (@$answer) {
556 0         0 $s = decode('ISO-8859-1', $s);
557             }
558 0         0 return $answer;
559             }
560              
561             sub maybe_tokenize
562             {
563 636     636 0 1841 my ( $self, $tag, $word, $t ) = @_;
564 636 50       2048 if ( $t eq 'd') {
565 0 0       0 if ($self->tag_one_word_clean($word)) {
566 0         0 return ''.$word.'';
567             }
568             else {
569 0         0 return $word;
570             }
571             }
572             else {
573 636         3230 return $tag.$word.'';
574             }
575             }
576              
577              
578             # takes a sentence as input and returns the sentence with trivial markup
579             # around each token (in bash version this was part of abairti)
580             sub tokenize_real
581             {
582 485     485 0 945 my ( $self, $sentence ) = @_;
583 485         997 my $answer="";
584             # assumes get_sentences_real has been called, collapses \s+ to " "
585 485         3665 foreach my $chunk (split / /,$sentence) {
586 4725 100       13948 if ($chunk =~ m/^[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]+$/) {
587 4099         9819 $chunk =~ s/^//;
588 4099         11129 $chunk =~ s/$/<\/c>/;
589             }
590             else {
591 626         1046 my $chunkdone = '1';
592 626         1651 foreach my $rule (@TOKEN) {
593 14398         15567 my $chtemp="";
594 14398         23488 my $p = $rule->{'compiled'};
595 14398         20885 my $tag = $rule->{'tag'};
596 14398         18512 my $t = $rule->{'tail'};
597 14398         13202 my $todo;
598 14398         33632 while ($chunk =~ /([^<]*)(<[A-Zc][^>]*>[^<]+<\/[A-Zc]>)/g) {
599 1500         2367 $todo = $1;
600 1500         2315 my $done = $2;
601 1500 100       2688 if ($todo) {
602 334         411 $chunkdone = '';
603 334         1105 $todo =~ s/$p/$self->maybe_tokenize($tag,$1,$t)/eg;
  0         0  
604             }
605 1500         4624 $chtemp .= $todo.$done;
606             }
607 14398         41609 $chunk =~ /([^>]*)$/;
608 14398         22705 $todo = $1;
609 14398 100       27679 if ($todo) {
610 14090         15319 $chunkdone = '';
611 14090         44902 $todo =~ s/$p/$self->maybe_tokenize($tag,$1,$t)/eg;
  636         2959  
612             }
613 14398 50       25442 last if $chunkdone;
614 14398         16536 $chtemp .= $todo;
615 14398         25925 $chunk = $chtemp;
616             }
617             # might have borel.slu.edu/&; as a URL
618 626         1452 $chunk =~ s/&(quot|[gl]t|amp)(<\/.>);/&$1;$2/g;
619             # all others are external for now
620 626         1315 $chunk =~ s/&(quot|[gl]t|amp)<\/c>;/&$1;/g;
621 626         2049 $chunk =~ s/(<\/.>)
622             }
623 4725 100       10564 $answer .= " " if $answer;
624 4725         7738 $answer .= $chunk;
625             }
626 485         2299 return $answer;
627             }
628              
629             # takes an untagged sentence (usually fresh from get_sentences_real),
630             # tokenizes, and adds a preliminary XML markup consisting of all possible
631             # parts of speech for each word
632             sub unchecked_xml
633             {
634 485     485 0 937 my ( $self, $sentence ) = @_;
635 485         2099 $sentence = $self->tokenize_real($sentence);
636 485         6672 $sentence =~ s/(<[A-Zc][^>]*>[^<]+<\/[A-Zc]>) \1/$1 $1<\/E>/g;
637 485         2859 1 while ( $sentence =~ s/([^<]*)<\/c>/$self->tag_one_word($1);/e );
  4710         231115  
638 485         11954 $sentence =~ s/(]+>[^<]+<\/X><\/E>) \1<\/E>/$1 $1/g;
639 485         2708 $sentence =~ s/^/ /;
640 485         2440 $sentence =~ s/$/ <\/line>/;
641 485         2600 return $sentence;
642             }
643              
644             ##############################################################################
645              
646             =item spell_check TEXT
647              
648             Returns a reference to an array containing the misspelled words appearing
649             in the input text.
650              
651             =cut
652              
653             ##############################################################################
654              
655             # current behavior is to accept words as correct, like aspell-ga literary.
656             # Just change X -> FX below to reject these words (this would
657             # break the replcheck target though...)
658             sub spell_check
659             {
660 0     0 1 0 my ( $self, $text ) = @_;
661 0 0       0 return undef unless defined $text;
662 0         0 eval {from_to($text,$self->{'input_encoding'},'ISO-8859-1') };
  0         0  
663 0 0       0 croak gettext('conversion from %s is not supported',
664             $self->{'input_encoding'}) if $@;
665 0         0 my $badwords = [];
666 0         0 my $sentences = get_sentences_real($text);
667 0         0 foreach my $s (@$sentences) {
668 0         0 $s = $self->unchecked_xml($s);
669 0 0       0 if ($s =~ m/<[X]>/) {
670 0         0 $s =~ s/<[^X\/][^>]*>//g;
671 0         0 $s =~ s/<\/[^X][^>]*>//g;
672 0         0 $s =~ s/^[^<]*<[X]>//;
673 0         0 $s =~ s/<\/[X]>[^<]*$//;
674 0         0 $s =~ s/<\/[X]>[^<]*<[X]>/\n/g;
675 0         0 $s = decode('ISO-8859-1', $s);
676 0         0 push @$badwords,split (/\n/,$s);
677             }
678             }
679 0         0 return $badwords;
680             }
681              
682             ##############################################################################
683              
684             =item all_possible_tags WORD
685              
686             Takes the input WORD and returns it with (XML-style) markup
687             indicating all of its possible parts of speech.
688              
689             =cut
690              
691             ##############################################################################
692              
693             sub all_possible_tags
694             {
695 0     0 1 0 my ( $self, $word ) = @_;
696 0 0       0 return undef unless defined $word;
697 0         0 eval {from_to($word,$self->{'input_encoding'},'ISO-8859-1') };
  0         0  
698 0 0       0 croak gettext('conversion from %s is not supported',
699             $self->{'input_encoding'}) if $@;
700 0         0 return decode('ISO-8859-1', $self->tag_one_word($word));
701             }
702              
703              
704             ##############################################################################
705              
706             =item add_tags TEXT
707              
708             Takes the input TEXT and returns a reference to an array of sentences
709             with (XML-style) *disambiguated* part-of-speech tags. Does not do
710             any grammatical rule checking.
711              
712             =cut
713              
714             ##############################################################################
715              
716             sub add_tags
717             {
718 0     0 1 0 my ( $self, $text ) = @_;
719 0 0       0 return undef unless defined $text;
720 0         0 eval {from_to($text,$self->{'input_encoding'},'ISO-8859-1') };
  0         0  
721 0 0       0 croak gettext('conversion from %s is not supported',
722             $self->{'input_encoding'}) if $@;
723 0         0 my $sentences = get_sentences_real($text);
724 0         0 foreach my $s (@$sentences) {
725 0         0 $s = $self->add_tags_real($s);
726 0         0 $s =~ s/<\/?E[^>]*>//g; # just POS tags
727 0         0 $s = decode('ISO-8859-1', $s);
728             }
729 0         0 return $sentences;
730             }
731              
732             # takes a sentence as input, usually fresh from get_sentences_real
733             # Forms the main step in add_tags, and also in xml_stream and
734             # grammatical_errors (in the latter two cases being followed by
735             # a call to "rialacha" to add additional markup)
736             sub add_tags_real
737             {
738 485     485 0 961 (my $self, my $sentence) = @_;
739 485         2355 $sentence = unchecked_xml(@_);
740 485         2009 comhshuite($sentence);
741 485         2112 aonchiall($sentence);
742 485         3006 aonchiall_deux($sentence);
743 485 50       4599 unigram($sentence) if $self->{'unigram_tagging'};
744 485         2248 return $sentence;
745             }
746              
747             ##############################################################################
748              
749             =item xml_stream TEXT
750              
751             Takes the input TEXT and returns it as well-formed XML (encoded as perl
752             strings, not utf-8) with full grammatical markup. Error messages are not
753             localized. This function should only be exported for debugging/development
754             purposes. Use "grammatical_errors" (which is basically "xml_stream" plus
755             some whittling down) as an interface with other programs.
756              
757             =cut
758              
759             ##############################################################################
760             # bash version's vanilla_xml_output/aspell_xml_output
761             sub xml_stream
762             {
763 0     0 1 0 my ( $self, $text ) = @_;
764 0 0       0 return undef unless defined $text;
765 0         0 eval {from_to($text,$self->{'input_encoding'},'ISO-8859-1') };
  0         0  
766 0 0       0 croak gettext('conversion from %s is not supported',
767             $self->{'input_encoding'}) if $@;
768 0         0 my $langcode='GA';
769 0         0 my $langlower="\L$langcode\E";
770 0         0 my $answer='';
771 0         0 $answer = $answer."\n";
772 0         0 $answer = $answer."\n\n";
773 0         0 my $sentences = get_sentences_real($text);
774 0         0 foreach my $s (@$sentences) {
775 0         0 $s = $self->add_tags_real($s);
776 0         0 rialacha ($s);
777             }
778 0         0 $answer = $answer.join("\n", @$sentences);
779 0         0 $answer = $answer."\n\n";
780 0         0 $answer = decode("ISO-8859-1", $answer);
781 0         0 return $answer;
782             }
783              
784             sub localize_me
785             {
786 488     488 0 1262 my ( $self, $msg ) = @_;
787              
788 488         1834 $msg =~ m/^([^{]+)/;
789 488         1071 my $macro = $1;
790 488         771 my $msgstr = '-';
791 488 50       2201 if (exists($MESSAGES{$macro})) {
792 488         1306 my $msgid = $MESSAGES{$macro};
793 488 100       2186 if ($msg =~ m/{(.*)}$/) {
794 267         541 my $argument = $1;
795 267         702 $argument =~ tr/_/ /; # from EILE database
796 267         1121 $msgstr = gettext($msgid, $argument);
797             }
798             else {
799 221         980 $msgstr = gettext($msgid);
800             }
801             }
802             else {
803 0         0 carp gettext('%s: unrecognized error macro: %s\n',
804             gettext('An Gramadoir'),$macro);
805             }
806 488         51446 return $msgstr;
807             }
808              
809             #
810             # The next batch of functions consists of helpers for grammatical_errors
811             #
812              
813             # used to be " " x length($text) but we need to keep newlines for coords
814             sub whiteout
815             {
816 0     0 0 0 my ( $text ) = @_;
817 0         0 $text =~ s/[^\n]/ /g;
818 0         0 return $text;
819             }
820              
821             # preserve length; see computation of "offset" attribute below; convention is
822             # that it is measured with entities in place of &, <, >, ". But if we
823             # just leave the entities they mess up the various [^A-Za-z]* patts
824             sub strip_entities
825             {
826 485     485 0 1129 my ( $text ) = @_;
827 485         1451 $text =~ s/"/""""""/g;
828 485         1217 $text =~ s/</<<<
829 485         1026 $text =~ s/>/>>>>/g;
830 485         915 $text =~ s/&/&&&&&/g;
831 485         1306 return $text;
832             }
833              
834             # note amp is done last of course
835             sub deentify
836             {
837 976     976 0 1449 my ( $text ) = @_;
838 976         1644 $text =~ s/"/"/g;
839 976         1661 $text =~ s/</
840 976         1819 $text =~ s/>/>/g;
841 976         1480 $text =~ s/&/&/g;
842 976         2416 return $text;
843             }
844              
845             # used by regexify; e.g. ^ in Esperanto, $ in "$100" tokens, etc.
846             sub escape_meta
847             {
848 3425     3425 0 10469 my ( $text ) = @_;
849 3425         12834 $text =~ s/\[/\\[/g;
850 3425         3842 $text =~ s/\]/\\]/g;
851 3425         4565 $text =~ s/([.?+\$*^()])/\\$1/g;
852 3425         16850 return $text;
853             }
854              
855             # Called from search routine below; takes a chunk of the XML
856             # stream and turns it into a regex that can be matched against
857             # the original unmodified input stream. So we need to escape
858             # regex chars like parens, ^, $, and strip markup...
859             # Assuming no error markup is left when this is called; see below...
860             sub regexify
861             {
862 976     976 0 1829 my ( $text ) = @_;
863 976         4192 $text =~ s/ *<\/?line> *//;
864 976         1736 $text =~ s/<\/E>//; # nested
865 976 100       2936 if ($text =~ m/^[^<]+/) {
866 5         22 $text =~ s/^[^<]+/"[^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]*?"/e;
  5         18  
867             }
868 976         2163 $text = deentify($text); # do after previous!
869 976         5673 $text =~ s/<[A-Z][^>]*>([^<]+)<\/[A-Z]>[^<]*/escape_meta($1)."[^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]*?"/eg; # note * not + in replacement; also minimal match avoids some amazing implausible errors
  3425         6939  
870 976         2546 $text =~ s/ /\\s+/g; # spaces within word tokens only
871 976         1919 $text =~ s/(["&<>])/$1+/g; # within tokens only (like URLs!)
872             # need this b/c of strip_entities
873 976         3184 return $text;
874             }
875              
876             # call this on the raw input string that we use to search for
877             # global coordinates of errors; need to strip out markup and stuff
878             # but without changing any substring lengths or newlines.
879             # Should mimic similar lines in get_sentences_real
880             sub tidy_input
881             {
882 1     1 0 32 my ( $text ) = @_;
883 1         44 $text =~ s/(<[^>]*>)/whiteout($1);/eg;
  0         0  
884 1         43 $text =~ s/\\[tnvfr]/ /g;
885 1         59 $text =~ s/$NOBD/ /g;
886 1         49 $text =~ s/$BD/ /g;
887             # next three lines add "buffering" for easier searching per-line
888             # these are subtracted appropriately from offsets when matching occurs
889 1         46 $text =~ s/^/ /;
890 1         186 $text =~ s/\n/ \n /g;
891 1         38 $text =~ s/$/ /;
892 1         43 return $text;
893             }
894              
895             ##############################################################################
896              
897             =item grammatical_errors TEXT
898              
899             Returns the grammatical errors in the input TEXT as a reference to an array,
900             one error per element of the array, with each error given in a simple
901             XML format usable by other applications. Error messages are localized
902             according to locale settings as determined by Locale::Maketext.
903              
904             =cut
905              
906             ##############################################################################
907              
908             # like the bash "xml_api"
909             sub grammatical_errors
910             {
911 1     1 1 5223 my ( $self, $text ) = @_;
912 1 50       6 return undef unless defined $text;
913 1         3 eval {from_to($text,$self->{'input_encoding'},'ISO-8859-1') };
  1         11  
914 1 50       786 croak gettext('conversion from %s is not supported',
915             $self->{'input_encoding'}) if $@;
916 1         6 my $pristine = tidy_input($text);
917              
918 1         4 my $errors = []; # array reference to return
919             # endoflast is global offset in $pristine following the end of last error
920 1         3 my $endoflast = 0;
921 1         3 my $toy = 0; # line number at position $endoflast; lines count from 1
922 1         2 my $tox = -1; # line position of end of last match (not like $+[0]!)
923              
924 1         5 my $sentences = get_sentences_real($text);
925             # these "plain" sentences include entities like " and
926             # are used as the "context" attribute in the --api output
927 1         4 foreach my $plain (@$sentences) {
928 485         2558 my $s = $self->add_tags_real($plain);
929 485         2186 rialacha ($s); # just like xml_stream now
930 485 50       3834 if ($s =~ /
931 485         4091 my $buffered = strip_entities(" $plain ");
932 485         5507 while ($s =~ m!(.*?)(]+>)(.*?)!g) {
933 488         1792 my $prefix = $1;
934 488         1752 my $thiserror = $2; # modify and push onto ans
935 488         1095 my $errorregex = $3;
936             # deal with rare nested errors - only happens
937             # when one (usu. len==1) is inserted in int.
938             # of existing error of len>=3 (no overlapping!)
939 488 50       1530 if ($errorregex =~ m/^(.*)(]+>)(.*)$/) {
940 0         0 $prefix .= $1;
941 0         0 $thiserror = $2;
942 0         0 $errorregex = $3;
943             }
944 488         1764 $prefix = regexify($prefix);
945 488         1088 $errorregex = regexify($errorregex);
946 488         1159 $errorregex =~ s/\[\^[^]]+\]\*$//;
947 488         850 my $fromy;
948             my $fromx;
949 488         1480 my $matchregex = "$prefix($errorregex)";
950 488 100       1549 $matchregex =~ s/^/(?<=[^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])/ unless $prefix;
951             # print "MRE=$matchregex\n";
952 488         47290 $pristine =~ m!$matchregex!gs;
953 488         3192 my $globs = $-[1];
954 488         1713 my $globe = $+[1];
955 488 50 33     4031 unless (defined($globs) and defined($globe)) {
956             # segfaults from carp?
957 0         0 print STDERR "regex error in computing global coordinates for $thiserror\nMRE=$matchregex\n";
958 0         0 next;
959             }
960 488         2214 my $str = substr($pristine, $endoflast, $globs - $endoflast);
961             # toy is that of the previous err (tox too)
962 488         1870 $fromy = $toy + ($str =~ tr/\n/\n/);
963 488 100       1776 if ($fromy == $toy) {
964 4         7 $fromx = $tox + 1 + ($globs - $endoflast);
965             }
966             else {
967 484         7888 $str =~ m/([^\n]+)$/s;
968 484         1304 $fromx = length ($1);
969             }
970 488         1282 $str = substr($pristine, $globs, $globe - $globs);
971 488         1016 $toy = $fromy + ($str =~ tr/\n/\n/);
972 488 50       1769 if ($fromy == $toy) {
973 488         838 $tox = $fromx + ($globe - $globs) - 1;
974             }
975             else {
976 0         0 $str =~ m/([^\n]+)$/s;
977 0         0 $tox = length ($1) - 1 ;
978             }
979 488         615 $endoflast = $globe;
980 488         659 $fromx--;
981 488         1302 my $toans = $tox - 1; # keep tox for next err
982             # now setup context; search in buffered which has had
983             # entities stripped. Means we can't just insert in it.
984 488         39454 $buffered =~ m!$matchregex!g;
985 488         2005 my $offset = $-[1] - 1;
986 488         1208 my $errortext = $1;
987 488         821 my $errlen = length($errortext);
988 488         6133 $thiserror =~ s!^$!!;
989 488         4628 $thiserror = decode("ISO-8859-1", $thiserror);
990 488         30806 $thiserror =~ s! msg="([^"]+)"!" msg=\"".$self->localize_me($1)."\""!e;
  488         3031  
991 488         4236 push @$errors, $thiserror;
992             }
993             }
994             } # loop over sentences
995 1         41 return $errors;
996             }
997              
998             # functionally same as aonchiall; separate for profiling
999             sub aonchiall_deux
1000             {
1001 485     485 0 1784 return aonchiall(@_);
1002             }
1003              
1004             # called from rialacha "OK" rules
1005             sub strip_errors
1006             {
1007 615     615 0 2175 my ( $str ) = @_;
1008 615         3521 $str =~ s/]*>//;
1009 615         2397 $str =~ s/<\/E>//;
1010 615         3388 return $str;
1011             }
1012              
1013             # called from aonchiall ":!" rules
1014             # first argument is the stuff between and
1015             # second argument is the word
1016             # third argument is a regexp matching all tags to be tossed out
1017             sub strip_badpos
1018             {
1019 242     242 0 1157 my ( $str, $word, $badpos ) = @_;
1020 242         354 my $pos;
1021 242         403 my $orig = $str;
1022 242         5591 $str =~ s/$badpos//g;
1023 242 100       1710 if ($str =~ m/>
    50          
1024 110         1345 return "$str$word";
1025             }
1026             elsif ($str =~ m/^<([A-Z])/) {
1027 132         293 $pos = $1;
1028 132         721 $str =~ s/.>$/>/;
1029 132         2014 return "$str$word";
1030             }
1031             else {
1032 0         0 $orig =~ s/^(<([A-Z])[^>]*).><.*/$1>/;
1033 0         0 $pos = $2;
1034 0         0 return "$orig$word";
1035             }
1036             }
1037              
1038             ##############################################################################
1039             # The remaining functions are automatically generated using a high
1040             # level description of Irish grammar; see the An Gramadoir
1041             # developers' pack for more information...
1042             # http://borel.slu.edu/gramadoir/
1043             ##############################################################################
1044             sub aonchiall
1045             {
1046 970     970 0 2459 for ($_[0]) {
1047 970         3874 s/([Ii]<\/S> )(?:<[^>]+>)+<\/Z>(bhfuil)<\/B>()/$1$2<\/N>$3/g;
1048 970         3204 s/()(?:<[^>]+>)+<\/Z>(bhfuil)<\/B>()/$1$2<\/V>$3/g;
1049 970         2348 s/()(?:<[^>]+>)+<\/Z>(raibh)<\/B>()/$1$2<\/V>$3/g;
1050 970         1794 s/()(?:<[^>]+>)+<\/Z>(t\x{e9})<\/B>()/$1

$2<\/P>$3/g;

1051 970         2250 s/()(?:<[^>]+>)+<\/Z>([Bb]huaigh)<\/B>()/$1$2<\/V>$3/g;
1052 970         2308 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Bb]hraith)<\/B>()/$1$2<\/N>$3/g;
1053 970         2072 s/()(?:<[^>]+>)+<\/Z>([Bb]hraith)<\/B>()/$1$2<\/V>$3/g;
1054 970         2318 s/()(?:<[^>]+>)+<\/Z>([Tt]har)<\/B>()/$1$2<\/S>$3/g;
1055 970         2214 s/()(?:<[^>]+>)+<\/Z>([Cc]han)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1056 970         2531 s/()(?:<[^>]+>)+<\/Z>([Ff]aoin)<\/B>()/$1$2<\/S>$3/g;
1057 970         2298 s/([Ff]aoin<\/S> )(?:<[^>]+>)+<\/Z>(g?ch?\x{e9}ad)<\/B>()/$1$2<\/N>$3/g;
1058 970         2476 s/()(?:<[^>]+>)+<\/Z>([Tt]h\x{ed}os)<\/B>()/$1$2<\/R>$3/g;
1059 970         2617 s/()(?:<[^>]+>)+<\/Z>([Ff]i\x{fa})<\/B>()/$1$2<\/R>$3/g;
1060 970         2342 s/([Nn]a<\/T> )(?:<[^>]+>)+<\/Z>(ba)<\/B>()/$1$2<\/N>$3/g;
1061 970         9399 s/()(?:<[^>]+>)+<\/Z>([Bb]a)<\/B>()/$1$2<\/V>$3/g;
1062 970         37267 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Gg]o|[Nn]ach)<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(m[Bb]a)<\/B>()/$1$2<\/V>$3/g;
1063 970         33098 s/((?:<[\/A-DF-Z][^>]*>)+[Dd]h?\x{e1}<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(m[Bb]a)<\/B>()/$1$2<\/V>$3/g;
1064 970         20198 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]o<\/[A-DF-Z]> )<\/Z>((?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*)<\/B>()/$1$2<\/V>$3/g;
1065 970         32844 s/((?:<[\/A-DF-Z][^>]*>)+[Nn]\x{e1}r<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Cc]huma)<\/B>()/$1$2<\/A>$3/g;
1066 970         8777 s/((?:<[\/A-DF-Z][^>]*>)+[Nn]\x{e1}r<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/V>$3/g;
1067 970         3901 s/()((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  6         41  
1068 970         2052 s/([Nn]\x{ed}os<\/R> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1069 970         3098 s/([Nn]\x{ed}(?: ?ba|b)<\/R> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1070 970         5828 s/((?:<[AN][^>]*>[^<]+<\/[AN]>|(?:<[AN][^>]*>)+<\/Z>[^<]+<\/B>) )<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/A>$3/g;
1071 970         2091 s/([^<]+<\/V> )<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/A>$3/g;
1072 970         2530 s/()<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/V>$3/g;
1073 970         2682 s/()(?:<[^>]+>)+<\/Z>(g?[Cc]h?\x{e9}ad)<\/B>( (?:<[\/A-DF-Z][^>]*>)+seo<\/[A-DF-Z]>)/$1$2<\/N>$3/g;
1074 970         2402 s/()(?:<[^>]+>)+<\/Z>(g?[Cc]h?\x{e9}ad)<\/B>()/$1$2<\/A>$3/g;
1075 970         2144 s/()(?:<[^>]+>)+<\/Z>([Cc]heana)<\/B>()/$1$2<\/R>$3/g;
1076 970         3289 s/()(?:<[^>]+>)+<\/Z>([Mm]\x{e1}s)<\/B>()/$1$2<\/V>$3/g;
1077 970         8777 s/()(?:<[^>]+>)+<\/Z>([Aa]b)<\/B>()/$1$2<\/V>$3/g;
1078 970         2639 s/()(?:<[^>]+>)+<\/Z>([\x{c1}\x{e1}]il)<\/B>()/$1$2<\/N>$3/g;
1079 970         2253 s/()(?:<[^>]+>)+<\/Z>([Mm]h?\x{f3}ide)<\/B>()/$1$2<\/A>$3/g;
1080 970         2228 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:\x{e1}il|ch?uimhin|eol|fh?\x{e9}idir|oth)<\/N>)/$1$2<\/V>$3/g;
1081 970         2076 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:h\x{e1}il|heol)<\/N>)/$1$2<\/V>$3/g;
1082 970         3670 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:aithnid|mian|suim)<\/N>)/$1$2<\/V>$3/g;
1083 970         2647 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( fuath<\/N>)/$1$2<\/V>$3/g;
1084 970         7676 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:]*>g\x{e1}<\/N>|(?:]*>)+<\/Z>g\x{e1}<\/B>))/$1$2<\/V>$3/g;
1085 970         3063 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:dh?\x{f3}cha|eagal|fh?ol\x{e1}ir|ionann|leor|mh?iste)<\/A>)/$1$2<\/V>$3/g;
1086 970         2020 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:heagal|hionann)<\/A>)/$1$2<\/V>$3/g;
1087 970         1999 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:fh?earr|mh?\x{f3}|mh?\x{f3}ide)<\/A>)/$1$2<\/V>$3/g;
1088 970         7131 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:]*>(?:h?ioma\x{ed}|l\x{e9}ir|n\x{e1}ir|fh?ada)<\/A>|(?:]*>)+<\/Z>(?:h?ioma\x{ed}|l\x{e9}ir|n\x{e1}ir|fh?ada)<\/B>))/$1$2<\/V>$3/g;
1089 970         5083 s/()(?:<[^>]+>)+<\/Z>(an)<\/B>( (?:<[\/A-DF-Z][^>]*>)+mhaith<\/[A-DF-Z]>)/$1$2<\/T>$3/g;
1090 970         3813 s/()(?:<[^>]+>)+<\/Z>(ar)<\/B>( (?:<[\/A-DF-Z][^>]*>)+ea<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1091 970         8580 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:c\x{f3}ir|cuma|deacair|dh?\x{e9}ana\x{ed}|deimhin|dh?ual|h?ea|\x{e9}ard|fi\x{fa}|gh?n\x{e1}ch|mh?aith|mh?ithid)<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1092 970         2487 s/()(?:<[^>]+>)+<\/Z>(Ach)<\/B>()/$1$2<\/C>$3/g;
1093 970         2070 s/()(?:<[^>]+>)+<\/Z>(Aifir)<\/B>()/$1$2<\/Y>$3/g;
1094 970         1859 s/()(?:<[^>]+>)+<\/Z>([Aa]inneoin)<\/B>()/$1$2<\/N>$3/g;
1095 970         2195 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(\x{e1}irithe)<\/B>()/$1$2<\/N>$3/g;
1096 970         1814 s/([Ii]n<\/S> )(?:<[^>]+>)+<\/Z>(\x{e1}irithe)<\/B>()/$1$2<\/N>$3/g;
1097 970         1880 s/()(?:<[^>]+>)+<\/Z>(\x{e1}irithe)<\/B>()/$1$2<\/A>$3/g;
1098 970         2238 s/()(?:<[^>]+>)+<\/Z>([Hh]al\x{f3})<\/B>()/$1$2<\/I>$3/g;
1099 970         2352 s/()(?:<[^>]+>)+<\/Z>([Aa]lt)<\/B>()/$1$2<\/N>$3/g;
1100 970         2408 s/()(?:<[^>]+>)+<\/Z>([Aa]ma)<\/B>()/$1$2<\/N>$3/g;
1101 970         2516 s/()(?:<[^>]+>)+<\/Z>([Aa]s)<\/B>( na<\/T>)/$1$2<\/S>$3/g;
1102 970         3006 s/()(?:<[^>]+>)+<\/Z>([Aa]s)<\/B>( (?:<[\/A-DF-Z][^>]*>)+an<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1103 970         3224 s/()(?:<[^>]+>)+<\/Z>([Aa]s)<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/S>$3/g;
1104 970         2414 s/()(?:<[^>]+>)+<\/Z>(ann)<\/B>()/$1$2<\/O>$3/g;
1105 970         1755 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( c\x{fa}is<\/N>)/$1$2<\/V>$3/g;
1106 970         6503 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/Q>$3/g;
1107 970         1977 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[\/A-DF-Z][^>]*>)+amhlaidh<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1108 970         5673 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[\/A-DF-Z][^>]*>)+mar<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1109 970         5825 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:]*>t\x{e9}<\/P>|(?:]*>)+<\/Z>t\x{e9}<\/B>))/$1$2<\/T>$3/g;
1110 970         5565 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[PRSO][^>]*>[^<]+<\/[PRSO]>|(?:<[PRSO][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1111 970         7318 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[\/A-DF-Z][^>]*>)+leis<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1112 970         5449 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[\/A-DF-Z][^>]*>)+de<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1113 970         5601 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[\/A-DF-Z][^>]*>)+faoi<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1114 970         4701 s/()(?:<[^>]+>)+<\/Z>(an)<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:chuir|n\x{ed}|mh?\x{f3}i?r)<\/[A-DF-Z]>)/$1$2<\/T>$3/g;
1115 970         7275 s/()(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>( (?:<[^\/V][^>]*>[^<]+<\/[^V]>|(?:<[^V][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/T>$3/g;
1116 970         2657 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>([Aa]n)<\/B>()/$1$2<\/T>$3/g;
1117 970         2446 s/()(?:<[^>]+>)+<\/Z>([Aa]nuas)<\/B>()/$1$2<\/R>$3/g;
1118 970         4376 s/((?:<[\/A-DF-Z][^>]*>)+[Mm]ar<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(aon)<\/B>()/$1$2<\/N>$3/g;
1119 970         1845 s/()(?:<[^>]+>)+<\/Z>(aon)<\/B>( le<\/S>)/$1$2<\/N>$3/g;
1120 970         3252 s/()(?:<[^>]+>)+<\/Z>([Aa]on)<\/B>()/$1$2<\/A>$3/g;
1121 970         2114 s/([Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(\x{e1}r)<\/B>()/$1$2<\/N>$3/g;
1122 970         2269 s/()(?:<[^>]+>)+<\/Z>(\x{e1}r)<\/B>( [^<]+<\/C>)/$1$2<\/N>$3/g;
1123 970         1801 s/()(?:<[^>]+>)+<\/Z>(\x{e1}r)<\/B>( [^<]+<\/T>)/$1$2<\/N>$3/g;
1124 970         8177 s/()(?:<[^>]+>)+<\/Z>([\x{c1}\x{e1}]r)<\/B>()/$1$2<\/D>$3/g;
1125 970         2754 s/()(?:<[^>]+>)+<\/Z>([Aa]t\x{e1})<\/B>()/$1$2<\/V>$3/g;
1126 970         2511 s/()(?:<[^>]+>)+<\/Z>(h[Aa]thair)<\/B>()/$1$2<\/N>$3/g;
1127 970         1762 s/()(?:<[^>]+>)+<\/Z>([Bb]haineann)<\/B>()/$1$2<\/V>$3/g;
1128 970         2021 s/([Aa]n<\/T> )(?:<[^>]+>)+<\/Z>([Bb]arra)<\/B>()/$1$2<\/N>$3/g;
1129 970         1873 s/()(?:<[^>]+>)+<\/Z>([Bb]h?arr)<\/B>()/$1$2<\/N>$3/g;
1130 970         1821 s/()(?:<[^>]+>)+<\/Z>([Bb]h?eag)<\/B>()/$1$2<\/A>$3/g;
1131 970         1987 s/(bheith<\/N> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  1         6  
1132 970         2955 s/()(?:<[^>]+>)+<\/Z>([Bb]h\x{ed})<\/B>()/$1$2<\/V>$3/g;
1133 970         3296 s/()(?:<[^>]+>)+<\/Z>([Cc]\x{e1})<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/Q>$3/g;
1134 970         3185 s/()(?:<[^>]+>)+<\/Z>([Cc]\x{e1})<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1135 970         2170 s/([Nn]a<\/T> )(?:<[^>]+>)+<\/Z>(g[Cc]airde)<\/B>()/$1$2<\/N>$3/g;
1136 970         2571 s/()(?:<[^>]+>)+<\/Z>(g?[Cc]h?airde)<\/B>()/$1$2<\/N>$3/g;
1137 970         2574 s/()(?:<[^>]+>)+<\/Z>([Cc]\x{e1}r)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/Q>$3/g;
1138 970         2529 s/()(?:<[^>]+>)+<\/Z>([Cc]\x{e1}r)<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[A-DF-Z]>)/$1$2<\/Q>$3/g;
1139 970         2099 s/(na<\/T> )(?:<[^>]+>)+<\/Z>([Cc]\x{e9})<\/B>()/$1$2<\/N>$3/g;
1140 970         7454 s/()(?:<[^>]+>)+<\/Z>([Cc][\x{c9}\x{e9}])<\/B>()/$1$2<\/Q>$3/g;
1141 970         2179 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Cc]h\x{e9}anna)<\/B>()/$1$2<\/N>$3/g;
1142 970         30050 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Cc]\x{e9}anna)<\/B>()/$1$2<\/N>$3/g;
1143 970         2224 s/((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="y" gnd="m"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>([Cc]h?\x{e9}anna)<\/B>()/$1$2<\/A>$3/g;
1144 970         2492 s/()(?:<[^>]+>)+<\/Z>([Cc]h?\x{e9}anna)<\/B>()/$1$2<\/A>$3/g;
1145 970         2237 s/((?:<[\/A-DF-Z][^>]*>)+(?:a|\x{e1})<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(dh\x{f3})<\/B>()/$1$2<\/N>$3/g;
1146 970         2540 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>([Ss]h?ean)<\/B>()/$1$2<\/N>$3/g;
1147 970         29713 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Ss]h?ean)<\/B>()/$1$2<\/N>$3/g;
1148 970         29693 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Mm]h\x{ed}le)<\/B>()/$1$2<\/N>$3/g;
1149 970         2168 s/()(?:<[^>]+>)+<\/Z>([Mm]h\x{ed}le)<\/B>()/$1$2<\/N>$3/g;
1150 970         2693 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1151 970         37265 s/((?:<[\/A-DF-Z][^>]*>)+d?[Tt]h?r\x{ed}<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1152 970         2217 s/(g?[Cc]h?eithre<\/A> )(?:<[^>]+>)+<\/Z>([Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1153 970         2132 s/(g?[Cc]h?\x{fa}ig<\/A> )(?:<[^>]+>)+<\/Z>([Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1154 970         32551 s/((?:<[\/A-DF-Z][^>]*>)+[Ss]h?\x{e9}<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1155 970         2175 s/([Ss]h?eacht<\/A> )(?:<[^>]+>)+<\/Z>(m[Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1156 970         2173 s/(h?[Oo]cht<\/A> )(?:<[^>]+>)+<\/Z>(m[Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1157 970         2094 s/([Nn]aoi<\/A> )(?:<[^>]+>)+<\/Z>(m[Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1158 970         1823 s/(n?[Dd]h?eich<\/A> )(?:<[^>]+>)+<\/Z>(m[Bb]liana)<\/B>()/$1$2<\/N>$3/g;
1159 970         1916 s/()(?:<[^>]+>)+<\/Z>(m?[Bb]h?liana)<\/B>()/$1$2<\/N>$3/g;
1160 970         2314 s/([Aa]n<\/T> )(?:<[^>]+>)+<\/Z>([Cc]heathr\x{fa})<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/A>$3/g;
1161 970         2027 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> )(?:<[^>]+>)+<\/Z>([Cc]heathr\x{fa})<\/B>()/$1$2<\/A>$3/g;
1162 970         2123 s/()(?:<[^>]+>)+<\/Z>(g?[Cc]h?eathr\x{fa})<\/B>( (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>|(?:]*>)+<\/Z>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/B>))/$1$2<\/A>$3/g;
1163 970         2162 s/()(?:<[^>]+>)+<\/Z>(g?[Cc]h?eathr\x{fa})<\/B>( (?:]*h="y"[^>]*>[^<]+<\/N>|(?:]*h="y"[^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/A>$3/g;
1164 970         2286 s/((?:[Cc]huig|[Cc]hun)<\/S> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']+.>')."$4"/eg;
  1         9  
1165 970         2512 s/()(?:<[^>]+>)+<\/Z>(CIC)<\/B>()/$1$2<\/Y>$3/g;
1166 970         1688 s/()(?:<[^>]+>)+<\/Z>([Cc]hinn)<\/B>( [Bb]liana<\/N>)/$1$2<\/N>$3/g;
1167 970         1925 s/([Nn]a<\/T> )(?:<[^>]+>)+<\/Z>(cinn)<\/B>()/$1$2<\/N>$3/g;
1168 970         2072 s/((?:<[SV][^>]*>[^<]+<\/[SV]>|(?:<[SV][^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>(cinn)<\/B>()/$1$2<\/N>$3/g;
1169 970         2130 s/()(?:<[^>]+>)+<\/Z>(cinn)<\/B>()/$1$2<\/N>$3/g;
1170 970         1975 s/()(?:<[^>]+>)+<\/Z>(Colm)<\/B>()/$1$2<\/Y>$3/g;
1171 970         1811 s/()(?:<[^>]+>)+<\/Z>([Cc]omhalta)<\/B>()/$1$2<\/N>$3/g;
1172 970         2129 s/()(?:<[^>]+>)+<\/Z>(g?ch?\x{f3}na\x{ed})<\/B>()/$1$2<\/N>$3/g;
1173 970         1894 s/()(?:<[^>]+>)+<\/Z>([Cc]ora)<\/B>( [Cc]ainte<\/N>)/$1$2<\/N>$3/g;
1174 970         2082 s/()(?:<[^>]+>)+<\/Z>([Cc]ora)<\/B>( (?:<[\/A-DF-Z][^>]*>)+[Cc]rua<\/[A-DF-Z]>)/$1$2<\/N>$3/g;
1175 970         1831 s/(an<\/T> )(?:<[^>]+>)+<\/Z>([Cc]huir)<\/B>()/$1$2<\/N>$3/g;
1176 970         2239 s/()(?:<[^>]+>)+<\/Z>([Cc]huir)<\/B>()/$1$2<\/V>$3/g;
1177 970         2202 s/()(?:<[^>]+>)+<\/Z>([Cc]uir)<\/B>()/$1$2<\/V>$3/g;
1178 970         2690 s/(na<\/T> )(?:<[^>]+>)+<\/Z>(g[Cc]umann)<\/B>()/$1$2<\/N>$3/g;
1179 970         1888 s/()(?:<[^>]+>)+<\/Z>(g?[Cc]h?umann)<\/B>()/$1$2<\/N>$3/g;
1180 970         29698 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]o?n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Dd]\x{e1})<\/B>()/$1$2<\/A>$3/g;
1181 970         3287 s/((?:<[\/A-DF-Z][^>]*>)+g?ch?\x{e9}ad<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(d\x{e1})<\/B>()/$1$2<\/A>$3/g;
1182 970         2079 s/([Ss]a<\/S> )(?:<[^>]+>)+<\/Z>(d\x{e1})<\/B>()/$1$2<\/A>$3/g;
1183 970         3098 s/()(?:<[^>]+>)+<\/Z>([Dd]\x{e1})<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/C>$3/g;
1184 970         3402 s/()(?:<[^>]+>)+<\/Z>([Dd]\x{e1})<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/D>$3/g;
1185 970         2622 s/()(?:<[^>]+>)+<\/Z>([Dd]\x{e1})<\/B>( (?:<[\/A-DF-Z][^>]*>)+h[^<]+<\/[A-DF-Z]>)/$1$2<\/D>$3/g;
1186 970         2003 s/(an<\/T> )(?:<[^>]+>)+<\/Z>(d\x{e1}la)<\/B>()/$1$2<\/N>$3/g;
1187 970         1717 s/()(?:<[^>]+>)+<\/Z>(D\x{e9})<\/B>()/$1$2<\/N>$3/g;
1188 970         2266 s/()(?:<[^>]+>)+<\/Z>([Dd]eas)<\/B>()/$1$2<\/A>$3/g;
1189 970         1998 s/()(?:<[^>]+>)+<\/Z>(n?[Dd]h?\x{e9}ag)<\/B>()/$1$2<\/N>$3/g;
1190 970         2095 s/()(?:<[^>]+>)+<\/Z>(n?[Dd]h?\x{e9}an)<\/B>()/$1$2<\/V>$3/g;
1191 970         2188 s/()(?:<[^>]+>)+<\/Z>(n?[Dd]h?earna)<\/B>()/$1$2<\/V>$3/g;
1192 970         2169 s/()(?:<[^>]+>)+<\/Z>([Dd]eir)<\/B>()/$1$2<\/V>$3/g;
1193 970         2063 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Dd]eireadh)<\/B>()/$1$2<\/V>$3/g;
1194 970         1904 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( [Dd]eireadh<\/V>)/$1$2<\/G>$3/g;
1195 970         2127 s/()(?:<[^>]+>)+<\/Z>([Dd]eireadh)<\/B>()/$1$2<\/N>$3/g;
1196 970         1921 s/()(?:<[^>]+>)+<\/Z>([Dd]h?eiridh)<\/B>()/$1$2<\/N>$3/g;
1197 970         1998 s/()(?:<[^>]+>)+<\/Z>(d\x{ed}o?bh)<\/B>()/$1$2<\/O>$3/g;
1198 970         9748 s/()(?:<[^>]+>)+<\/Z>([Dd]o)<\/B>( na<\/T>)/$1$2<\/S>$3/g;
1199 970         2715 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>(do)<\/B>()/$1$2<\/D>$3/g;
1200 970         1933 s/()(?:<[^>]+>)+<\/Z>(do)<\/B>( [^<]+<\/D>)/$1$2<\/S>$3/g;
1201 970         1762 s/()(?:<[^>]+>)+<\/Z>(do)<\/B>( [^<]+<\/Y>)/$1$2<\/S>$3/g;
1202 970         1894 s/()(?:<[^>]+>)+<\/Z>(do)<\/B>( gach<\/A>)/$1$2<\/S>$3/g;
1203 970         2496 s/()(?:<[^>]+>)+<\/Z>(do)<\/B>( (?:]*gnt="y"[^>]*>[^<]+<\/N>|(?:]*gnt="y"[^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/D>$3/g;
1204 970         29686 s/((?:<[\/A-DF-Z][^>]*>)+[Dd]o<\/[A-DF-Z]> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']+.>')."$4"/eg;
  2         16  
1205 970         2917 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(d\x{f3})<\/B>()/$1$2<\/N>$3/g;
1206 970         2230 s/(an<\/T> )(?:<[^>]+>)+<\/Z>(d\x{f3})<\/B>()/$1$2<\/A>$3/g;
1207 970         2416 s/([Aa]g<\/S> )(?:<[^>]+>)+<\/Z>([Dd]\x{f3})<\/B>()/$1$2<\/N>$3/g;
1208 970         3660 s/()(?:<[^>]+>)+<\/Z>([Dd]\x{f3})<\/B>( (?:]*gnt="y"[^>]*>[^<]+<\/N>|(?:]*gnt="y"[^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/N>$3/g;
1209 970         7502 s/()(?:<[^>]+>)+<\/Z>([Dd]\x{f3})<\/B>()/$1$2<\/O>$3/g;
1210 970         2090 s/()(?:<[^>]+>)+<\/Z>(d\x{f3}igh)<\/B>()/$1$2<\/N>$3/g;
1211 970         2067 s/()(?:<[^>]+>)+<\/Z>(Dh?\x{fa}n)<\/B>()/$1$2<\/N>$3/g;
1212 970         7716 s/()(?:<[^>]+>)+<\/Z>([\x{c9}\x{e9}])<\/B>()/$1

$2<\/P>$3/g;

1213 970         1890 s/()(?:<[^>]+>)+<\/Z>([Ff]aoi)<\/B>( na<\/T>)/$1$2<\/S>$3/g;
1214 970         2535 s/()(?:<[^>]+>)+<\/Z>([Ff]aoi)<\/B>( (?:<[\/A-DF-Z][^>]*>)+an<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1215 970         2134 s/()(?:<[^>]+>)+<\/Z>([Ff]aoi)<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/S>$3/g;
1216 970         2344 s/()(?:<[^>]+>)+<\/Z>([Ff]eadh)<\/B>()/$1$2<\/N>$3/g;
1217 970         1989 s/(na<\/T> )(?:<[^>]+>)+<\/Z>(bh[Ff]ear)<\/B>()/$1$2<\/N>$3/g;
1218 970         3979 s/()(?:<[^>]+>)+<\/Z>((?:bh)?[Ff]h?ear)<\/B>()/$1$2<\/N>$3/g;
1219 970         2495 s/()(?:<[^>]+>)+<\/Z>([Ff]\x{e9}in)<\/B>()/$1$2<\/R>$3/g;
1220 970         2111 s/()(?:<[^>]+>)+<\/Z>([Ff]h?\x{e9}ir)<\/B>()/$1$2<\/N>$3/g;
1221 970         2563 s/()(?:<[^>]+>)+<\/Z>((?:bh)?[Ff]uair)<\/B>()/$1$2<\/V>$3/g;
1222 970         2022 s/((?:<[\/A-DF-Z][^>]*>)+[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(Gabhann)<\/B>()/$1$2<\/Y>$3/g;
1223 970         1960 s/()(?:<[^>]+>)+<\/Z>(Gabhann)<\/B>()/$1$2<\/V>$3/g;
1224 970         2682 s/()(?:<[^>]+>)+<\/Z>(g[Cc]inn)<\/B>()/$1$2<\/N>$3/g;
1225 970         2012 s/([^<]+<\/N> )(?:<[^>]+>)+<\/Z>(grinn)<\/B>()/$1$2<\/N>$3/g;
1226 970         3920 s/()(?:<[^>]+>)+<\/Z>([Gg]o)<\/B>( (?:]*>[^<]+<\/A>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1227 970         1912 s/(na<\/T> )(?:<[^>]+>)+<\/Z>(huaire)<\/B>()/$1$2<\/N>$3/g;
1228 970         2052 s/()(?:<[^>]+>)+<\/Z>(huaire)<\/B>()/$1$2<\/N>$3/g;
1229 970         1902 s/(iarraidh<\/N> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  0         0  
1230 970         1881 s/()(?:<[^>]+>)+<\/Z>(iompair)<\/B>()/$1$2<\/N>$3/g;
1231 970         2223 s/()(?:<[^>]+>)+<\/Z>([Ii]onam)<\/B>()/$1$2<\/O>$3/g;
1232 970         1783 s/()(?:<[^>]+>)+<\/Z>(iontach)<\/B>()/$1$2<\/A>$3/g;
1233 970         2488 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/R>$3/g;
1234 970         4236 s/((?:<[^\/ST][^>]*>[^<]+<\/[^ST]>|(?:<[^ST][^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>(theas)<\/B>()/$1$2<\/A>$3/g;
1235 970         2570 s/()(?:<[^>]+>)+<\/Z>([Ll]\x{e1}n)<\/B>( (?:]*pl="y"[^>]*>[^<]+<\/N>|(?:]*pl="y"[^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/N>$3/g;
1236 970         2258 s/()(?:<[^>]+>)+<\/Z>([Ll]\x{e1}n)<\/B>( [^<]+<\/D>)/$1$2<\/N>$3/g;
1237 970         2088 s/()(?:<[^>]+>)+<\/Z>([Ll]\x{e1}n)<\/B>( de<\/S>)/$1$2<\/A>$3/g;
1238 970         2370 s/([Ll]e<\/S> )(?:<[^>]+>)+<\/Z>((?:haon|hocht))<\/B>()/$1$2<\/A>$3/g;
1239 970         1834 s/([Ll]e<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1240 970         2174 s/([Ll]e<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1241 970         1655 s/([Ll]e<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1242 970         2354 s/([Ll]e<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1243 970         2150 s/()(?:<[^>]+>)+<\/Z>([Ll]\x{e9}inn)<\/B>()/$1$2<\/N>$3/g;
1244 970         2066 s/()(?:<[^>]+>)+<\/Z>([Ll]eis)<\/B>( [Nn]a<\/T>)/$1$2<\/S>$3/g;
1245 970         2361 s/()(?:<[^>]+>)+<\/Z>([Ll]eis)<\/B>( (?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1246 970         1948 s/()(?:<[^>]+>)+<\/Z>([Ll]eith)<\/B>()/$1$2<\/N>$3/g;
1247 970         3242 s/()(?:<[^>]+>)+<\/Z>([Ll]eo)<\/B>()/$1$2<\/O>$3/g;
1248 970         29359 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Ll]inne)<\/B>()/$1$2<\/N>$3/g;
1249 970         13981 s/((?:<[DT][^>]*>[^<]+<\/[DT]>|(?:<[DT][^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>([Ll]inne)<\/B>()/$1$2<\/N>$3/g;
1250 970         2368 s/()(?:<[^>]+>)+<\/Z>([Ll]inne)<\/B>()/$1$2<\/O>$3/g;
1251 970         3497 s/()(?:<[^>]+>)+<\/Z>([Mm]\x{e1})<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/C>$3/g;
1252 970         2175 s/((?:<[\/A-DF-Z][^>]*>)+[\x{d3}\x{f3}]<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(mhaith)<\/B>()/$1$2<\/N>$3/g;
1253 970         2872 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>(mh?aith)<\/B>()/$1$2<\/N>$3/g;
1254 970         2092 s/([Cc]\x{e9}n<\/Q> )(?:<[^>]+>)+<\/Z>(mh?aith)<\/B>()/$1$2<\/N>$3/g;
1255 970         1861 s/(an<\/T> )(?:<[^>]+>)+<\/Z>(mh?aith)<\/B>()/$1$2<\/N>$3/g;
1256 970         2509 s/((?:[Aa]on|[Cc]h\x{e9}ad)<\/A> )(?:<[^>]+>)+<\/Z>(mh?aith)<\/B>()/$1$2<\/N>$3/g;
1257 970         2372 s/()(?:<[^>]+>)+<\/Z>([Mm]h?aith)<\/B>()/$1$2<\/A>$3/g;
1258 970         1942 s/()(?:<[^>]+>)+<\/Z>([Mm]ar)<\/B>( (?:<[\/A-DF-Z][^>]*>)+gheall<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1259 970         2866 s/(an<\/T> )(?:<[^>]+>)+<\/Z>(mheasa)<\/B>()/$1$2<\/N>$3/g;
1260 970         2126 s/([^<]+<\/V> )(?:<[^>]+>)+<\/Z>(mh?easa)<\/B>()/$1$2<\/A>$3/g;
1261 970         2025 s/([^< ]+ [^<]+<\/S> [Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(mh\x{e9}id)<\/B>()/$1$2<\/N>$3/g;
1262 970         2631 s/((?:[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> [Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(mh\x{e9}id)<\/B>()/$1$2<\/N>$3/g;
1263 970         2308 s/([Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(mh\x{e9}id)<\/B>()/$1$2<\/N>$3/g;
1264 970         2818 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>(mh?\x{f3}r)<\/B>()/$1$2<\/N>$3/g;
1265 970         2205 s/(an<\/T> )(?:<[^>]+>)+<\/Z>(mh?\x{f3}r)<\/B>()/$1$2<\/N>$3/g;
1266 970         2001 s/(an<\/T> )(?:<[^>]+>)+<\/Z>(mh?\x{f3}ir)<\/B>()/$1$2<\/N>$3/g;
1267 970         2340 s/()(?:<[^>]+>)+<\/Z>([Mm]h?\x{f3}ir)<\/B>()/$1$2<\/A>$3/g;
1268 970         2514 s/()(?:<[^>]+>)+<\/Z>([Mm]h?\x{f3}r)<\/B>()/$1$2<\/A>$3/g;
1269 970         2438 s/()(?:<[^>]+>)+<\/Z>([Mm]h?\x{f3}ra)<\/B>()/$1$2<\/A>$3/g;
1270 970         2247 s/([Nn]a<\/T> )(?:<[^>]+>)+<\/Z>((?:haon|hocht))<\/B>()/$1$2<\/A>$3/g;
1271 970         2861 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{e1})<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1272 970         8618 s/((?:<[\/A-DF-Z][^>]*>)+[Nn]\x{e1}<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1273 970         7671 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{e1})<\/B>()/$1$2<\/C>$3/g;
1274 970         2434 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1275 970         1945 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1276 970         2078 s/((?:]*>Spiorad<\/N>|(?:]*>)+<\/Z>Spiorad<\/B>) )(?:<[^>]+>)+<\/Z>(Naomh)<\/B>()/$1$2<\/A>$3/g;
1277 970         5038 s/(na<\/T> )(?:<[^>]+>)+<\/Z>([Nn]aomh)<\/B>()/$1$2<\/N>$3/g;
1278 970         2036 s/()(?:<[^>]+>)+<\/Z>([Nn]aomh)<\/B>()/$1$2<\/N>$3/g;
1279 970         3062 s/([Aa]n<\/T> )(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>()/$1$2<\/N>$3/g;
1280 970         4072 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>( (?:<[\/A-DF-Z][^>]*>)+nach<\/[A-DF-Z]>)/$1$2<\/N>$3/g;
1281 970         3246 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>( (?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]>)/$1$2<\/N>$3/g;
1282 970         2391 s/((?:[Aa]on|[Gg]ach)<\/A> )(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>()/$1$2<\/N>$3/g;
1283 970         3970 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1284 970         2744 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>( m\x{f3}r<\/A>)/$1$2<\/V>$3/g;
1285 970         2510 s/([^<]+<\/C> )(?:<[^>]+>)+<\/Z>(n\x{ed})<\/B>( (?:<[^\/V][^>]*>[^<]+<\/[^V]>|(?:<[^V][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1286 970         3938 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1287 970         3644 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed})<\/B>( (?:]*>[^<]+<\/P>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1288 970         2088 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(N\x{ed}l)<\/B>()/$1$2<\/N>$3/g;
1289 970         3133 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>(N\x{ed}l)<\/B>()/$1$2<\/N>$3/g;
1290 970         2078 s/()(?:<[^>]+>)+<\/Z>(N\x{ed}l)<\/B>()/$1$2<\/V>$3/g;
1291 970         2086 s/()(?:<[^>]+>)+<\/Z>([Nn]uair)<\/B>()/$1$2<\/C>$3/g;
1292 970         1814 s/()(?:<[^>]+>)+<\/Z>(os)<\/B>()/$1$2<\/S>$3/g;
1293 970         2208 s/(na<\/T> )(?:<[^>]+>)+<\/Z>([Rr]inne)<\/B>()/$1$2<\/N>$3/g;
1294 970         2070 s/()(?:<[^>]+>)+<\/Z>([Rr]inne)<\/B>()/$1$2<\/V>$3/g;
1295 970         1858 s/()(?:<[^>]+>)+<\/Z>(San)<\/B>( (?:<[\/A-DF-Z][^>]*>)+[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)/$1$2<\/N>$3/g;
1296 970         2189 s/()(?:<[^>]+>)+<\/Z>(San)<\/B>()/$1$2<\/S>$3/g;
1297 970         1953 s/()(?:<[^>]+>)+<\/Z>([Ss]c\x{f3}r)<\/B>()/$1$2<\/N>$3/g;
1298 970         2358 s/(m?bh?ean<\/N> )(?:<[^>]+>)+<\/Z>([Ss]\x{ed})<\/B>()/$1$2<\/N>$3/g;
1299 970         2075 s/(m?bh?an<\/N> )(?:<[^>]+>)+<\/Z>([Ss]\x{ed})<\/B>()/$1$2<\/N>$3/g;
1300 970         1950 s/(aos<\/N> )(?:<[^>]+>)+<\/Z>([Ss]\x{ed})<\/B>()/$1$2<\/N>$3/g;
1301 970         1758 s/()(?:<[^>]+>)+<\/Z>([Ss]\x{ed})<\/B>( gaoithe<\/N>)/$1$2<\/N>$3/g;
1302 970         1599 s/()(?:<[^>]+>)+<\/Z>([Ss]\x{ed})<\/B>( deannaigh<\/N>)/$1$2<\/N>$3/g;
1303 970         2217 s/([Nn]a<\/T> )(?:<[^>]+>)+<\/Z>([Ss]\x{ed})<\/B>()/$1$2<\/N>$3/g;
1304 970         2032 s/()(?:<[^>]+>)+<\/Z>(s\x{ed})<\/B>()/$1

$2<\/P>$3/g;

1305 970         2791 s/((?:<[\/A-DF-Z][^>]*>)+\x{d3}<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(S\x{e9})<\/B>()/$1$2<\/Y>$3/g;
1306 970         3413 s/()(?:<[^>]+>)+<\/Z>([Ss]\x{e9})<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[A-DF-Z]>)/$1$2<\/A>$3/g;
1307 970         5364 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>(s\x{e9})<\/B>()/$1$2<\/A>$3/g;
1308 970         1975 s/((?:]*>s\x{ed}<\/P>|(?:]*>)+<\/Z>s\x{ed}<\/B>) n\x{f3}<\/C> )(?:<[^>]+>)+<\/Z>(s\x{e9})<\/B>()/$1

$2<\/P>$3/g;

1309 970         23717 s/((?:<[^\/V][^>]*>[^<]+<\/[^V]>|(?:<[^V][^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>([Ss]\x{e9})<\/B>()/$1$2<\/A>$3/g;
1310 970         7684 s/()(?:<[^>]+>)+<\/Z>([Ss]\x{e9})<\/B>()/$1

$2<\/P>$3/g;

1311 970         2019 s/()(?:<[^>]+>)+<\/Z>([Ss]iad)<\/B>()/$1

$2<\/P>$3/g;

1312 970         2333 s/([^<]+<\/S> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1313 970         2551 s/([^<]+<\/Q> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1314 970         4792 s/((?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1315 970         2458 s/([^<]+<\/C> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1316 970         14736 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]ch<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1317 970         14852 s/((?:<[\/A-DF-Z][^>]*>)+[Aa][rs]<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1318 970         14727 s/((?:<[\/A-DF-Z][^>]*>)+[Dd]e<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1319 970         14546 s/((?:<[\/A-DF-Z][^>]*>)+[Ff]aoi<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1320 970         3913 s/()(?:<[^>]+>)+<\/Z>([Dd]e)<\/B>( (?:]*>(?:seo|sin)<\/P>|(?:]*>)+<\/Z>(?:seo|sin)<\/B>))/$1$2<\/S>$3/g;
1321 970         13943 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]ur<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1322 970         14240 s/((?:<[\/A-DF-Z][^>]*>)+[Mm]ar<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1323 970         14846 s/((?:<[\/A-DF-Z][^>]*>)+[\x{d3}\x{f3}]<\/[A-DF-Z]> )(?:)?<\/Z>([^<]+)<\/B>()/$1

$2<\/P>$3/g;

1324 970         2949 s/()(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1325 970         1948 s/([Ss]na<\/S> )(?:<[^>]+>)+<\/Z>((?:haon|hocht))<\/B>()/$1$2<\/A>$3/g;
1326 970         2173 s/([Ss]na<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1327 970         1968 s/([Ss]na<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1328 970         2060 s/()(?:<[^>]+>)+<\/Z>([Ss]n\x{e1}mh)<\/B>()/$1$2<\/N>$3/g;
1329 970         2240 s/()(?:<[^>]+>)+<\/Z>([Tt]har)<\/B>()/$1$2<\/S>$3/g;
1330 970         2412 s/()(?:<[^>]+>)+<\/Z>([Tt]hart)<\/B>()/$1$2<\/R>$3/g;
1331 970         2266 s/((?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>(thoir)<\/B>()/$1$2<\/A>$3/g;
1332 970         2083 s/((?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>(Thoir)<\/B>()/$1$2<\/A>$3/g;
1333 970         2503 s/()(?:<[^>]+>)+<\/Z>([Tt]hoir)<\/B>()/$1$2<\/R>$3/g;
1334 970         2299 s/()(?:<[^>]+>)+<\/Z>(T[Hh][Ee])<\/B>()/$1$2<\/F>$3/g;
1335 970         2062 s/((?:<[^\/N][^>]*>[^<]+<\/[^N]>|(?:<[^N][^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>(the)<\/B>()/$1$2<\/F>$3/g;
1336 970         2245 s/()(?:<[^>]+>)+<\/Z>([Tt][Hh][Ee])<\/B>( [^<]+<\/X>)/$1$2<\/F>$3/g;
1337 970         1812 s/()(?:<[^>]+>)+<\/Z>(theannta)<\/B>()/$1$2<\/N>$3/g;
1338 970         7737 s/()(?:<[^>]+>)+<\/Z>([Tt]h?\x{ed})<\/B>()/$1$2<\/N>$3/g;
1339 970         2155 s/([Aa]g<\/S> )(?:<[^>]+>)+<\/Z>([Tt]r\x{e1})<\/B>()/$1$2<\/N>$3/g;
1340 970         2592 s/()((?:<[^>]+>)+)<\/Z>(d?[Tt]h?r\x{e1})<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  1         9  
1341 970         1969 s/()(?:<[^>]+>)+<\/Z>(Treasa)<\/B>()/$1$2<\/Y>$3/g;
1342 970         11556 s/((?:<[ST][^>]*>[^<]+<\/[ST]>|(?:<[ST][^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)+<\/Z>([Tt]r\x{ed})<\/B>()/$1$2<\/A>$3/g;
1343 970         2676 s/()(?:<[^>]+>)+<\/Z>([Tt]r\x{ed})<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:bliana|cinn|fichid|seachtaine)<\/[A-DF-Z]>)/$1$2<\/A>$3/g;
1344 970         2731 s/()(?:<[^>]+>)+<\/Z>([Tt]r\x{ed})<\/B>()/$1$2<\/S>$3/g;
1345 970         1938 s/()(?:<[^>]+>)+<\/Z>([Tt]r\x{ed}d)<\/B>( na<\/T>)/$1$2<\/S>$3/g;
1346 970         2422 s/()(?:<[^>]+>)+<\/Z>([Tt]r\x{ed}d)<\/B>( (?:<[\/A-DF-Z][^>]*>)+an<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1347 970         2297 s/()(?:<[^>]+>)+<\/Z>([Tt]r\x{ed}d)<\/B>()/$1$2<\/O>$3/g;
1348 970         2000 s/()(?:<[^>]+>)+<\/Z>(U\x{ed})<\/B>()/$1$2<\/Y>$3/g;
1349 970         5855 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]r<\/[A-DF-Z]> [Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(Aire)<\/B>()/$1$2<\/N>$3/g;
1350 970         2032 s/([^<]+<\/S> [Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(Aire)<\/B>()/$1$2<\/N>$3/g;
1351 970         1785 s/([Aa]n<\/T> )(?:<[^>]+>)+<\/Z>(Aire)<\/B>()/$1$2<\/N>$3/g;
1352 970         1964 s/()(?:<[^>]+>)+<\/Z>(Aire)<\/B>()/$1$2<\/N>$3/g;
1353 970         2273 s/()(?:<[^>]+>)+<\/Z>((?:n-)?aire)<\/B>()/$1$2<\/N>$3/g;
1354 970         15215 s/((?:<[^\/ANV][^>]*>[^<]+<\/[^ANV]>|(?:<[^ANV][^>]*>)+<\/Z>[^<]+<\/B>) )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/"$1".strip_badpos($2,$3,']+.>')."$4"/eg;
  5         34  
1355 970         10711 s/((?:<[IOQUV][^>]*>[^<]+<\/[IOQUV]>|(?:<[IOQUV][^>]*>)+<\/Z>[^<]+<\/B>) )((?:<[^>]+>)*]*>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']*.>')."$4"/eg;
  72         459  
1356 970         2841 s/((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> )((?:<[^>]+>)*]*>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']*.>')."$4"/eg;
  57         322  
1357 970         2094 s/([Gg]o dt\x{ed}<\/S> )((?:<[^>]+>)*]*>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']*.>')."$4"/eg;
  0         0  
1358 970         2734 s/((?:[Dd]\x{e1}r?|(?:[Ff]aoi|[Ii]|[Ll]e|[Tt]r\x{ed})n(?:a|\x{e1}r))<\/D> )((?:<[^>]+>)*]*>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']*.>')."$4"/eg;
  5         34  
1359 970         2554 s/((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> (?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> )((?:<[^>]+>)*]*>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']*.>')."$4"/eg;
  8         57  
1360 970         2579 s/((?:<[^\/ACNRSY][^>]*>[^<]+<\/[^ACNRSY]>|(?:<[^ACNRSY][^>]*>)+<\/Z>[^<]+<\/B>) (?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> )((?:<[^>]+>)*]*>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']*.>')."$4"/eg;
  9         67  
1361 970         14565 s/((?:<[^\/ACNRSY][^>]*>[^<]+<\/[^ACNRSY]>|(?:<[^ACNRSY][^>]*>)+<\/Z>[^<]+<\/B>) (?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Gg]hl\x{f3}ir)<\/B>()/$1$2<\/N>$3/g;
1362 970         23279 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>((?:[Cc]h\x{e1}il|[CcMm]hoill|[Cc]hoir|[Gg]hr\x{e1}in))<\/B>()/$1$2<\/N>$3/g;
1363 970         11781 s/((?:<[^\/S][^>]*>[^<]+<\/[^S]>|(?:<[^S][^>]*>)+<\/Z>[^<]+<\/B>) (?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/N>$3/g;
1364 970         2460 s/([Cc]hun<\/S> (?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/N>$3/g;
1365 970         2152 s/()(?:<[^>]+>)+<\/Z>(Inis)<\/B>()/$1$2<\/N>$3/g;
1366 970         2881 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*)<\/B>()/$1$2<\/V>$3/g;
1367 970         12318 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Gg]ur|[Mm]urar|[Ss]ular)<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1368 970         2210 s/((?:d\x{e1}r|(?:faoi|i|le|\x{f3}|tr\x{ed})nar)<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1369 970         12132 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Cc]\x{e1}r|[Cc]har|[Nn]\x{e1}r|[Nn]\x{ed}or)<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1370 970         4957 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Gg]ur|[Mm]urar|[Ss]ular)<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1371 970         1920 s/((?:d\x{e1}r|(?:faoi|i|le|\x{f3}|tr\x{ed})nar)<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1372 970         5139 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Cc]\x{e1}r|[Cc]har|[Nn]\x{e1}r|[Nn]\x{ed}or)<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1373 970         5501 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]r<\/[A-DF-Z]> )((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  4         31  
1374 970         4340 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]r<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*)<\/B>()/$1$2<\/V>$3/g;
1375 970         2402 s/([Gg]o dt\x{ed}<\/S> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1376 970         1795 s/([^< ]+ [^<]+<\/S> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1377 970         2421 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*)<\/B>()/$1$2<\/N>$3/g;
1378 970         2251 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*)<\/B>()/$1$2<\/N>$3/g;
1379 970         14589 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/[A-DF-Z]> an<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1380 970         11030 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/[A-DF-Z]> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1381 970         12464 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/[A-DF-Z]> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1382 970         5104 s/((?:<[\/A-DF-Z][^>]*>)+(?:[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/[A-DF-Z]> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1383 970         2065 s/([Gg]o dt\x{ed}<\/S> an<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1384 970         1956 s/([Gg]o dt\x{ed}<\/S> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1385 970         2011 s/([Gg]o dt\x{ed}<\/S> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1386 970         1997 s/([^< ]+ [^<]+<\/S> )((?:<[^>]+>)+)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,']+.>')."$4"/eg;
  5         36  
1387 970         2332 s/([^< ]+ [^<]+<\/S> an<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1388 970         2400 s/([^< ]+ [^<]+<\/S> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1389 970         2225 s/([^< ]+ [^<]+<\/S> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1390 970         1924 s/([^< ]+ [^<]+<\/S> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1391 970         3406 s/([^< ]+<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1392 970         2739 s/([^< ]+<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1393 970         2291 s/([^< ]+<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1394 970         2421 s/([^< ]+<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1395 970         14168 s/((?:]*>[Dd]\x{ed}s|[Dd]h?osaen|[Pp]h?\x{e9}ire<\/N>|(?:]*>)+<\/Z>[Dd]\x{ed}s|[Dd]h?osaen|[Pp]h?\x{e9}ire<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1396 970         6010 s/((?:]*>[Dd]\x{ed}s|[Dd]h?osaen|[Pp]h?\x{e9}ire<\/N>|(?:]*>)+<\/Z>[Dd]\x{ed}s|[Dd]h?osaen|[Pp]h?\x{e9}ire<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1397 970         2989 s/([Cc]h?\x{fa}pla<\/N> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1398 970         2285 s/([Cc]h?\x{fa}pla<\/N> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1399 970         2685 s/()(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/R>$3/g;
1400 970         7611 s/((?:]*pl="y" gnt="y"[^>]*>[^< ]*[a\x{e1}o\x{f3}u\x{fa}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>|(?:]*pl="y" gnt="y"[^>]*>)+<\/Z>[^< ]*[a\x{e1}o\x{f3}u\x{fa}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1401 970         4216 s/((?:]*pl="y"[^>]*>[^<]+<\/N>|(?:]*pl="y"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:)?(?:)?(?:)?(?:]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1402 970         2296 s/((?:[Dd]h\x{e1}|[Tt]h?r\x{ed}|[Cc]h?eithre|[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|[Oo]cht|[Nn]aoi|[Dd]h?eich)<\/A> (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1403 970         2047 s/((?:[Dd]h\x{e1}|[Tt]h?r\x{ed}|[Cc]h?eithre|[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|[Oo]cht|[Nn]aoi)<\/A> (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) [Dd]h?\x{e9}ag<\/N> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1404 970         4174 s/((?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="y" gnd="f"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[^<]+(?:[^ae]|[^th][ae]|[^t]h[ae])))<\/B>()/$1$2<\/A>$3/g;
1405 970         4116 s/((?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="y" gnd="f"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[^<]*aimseartha|[Cc]h?athartha|[Cc]h?oitianta|[Gg]h?al\x{e1}nta|[Gg]h?inear\x{e1}lta|[Ll]og\x{e1}nta|[Mm]h?\x{ed}leata|[Nn]\x{e1}d\x{fa}rtha|(?:[Ii]dir)?[Nn]\x{e1}isi\x{fa}nta|[Ss]\x{f3}isialta|[Ss]peisialta|[Tt]h?raidisi\x{fa}nta))<\/B>()/$1$2<\/A>$3/g;
1406 970         3604 s/((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="y" gnd="m"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[^<]+(?:[^ae]|[^th][ae]|[^t]h[ae])))<\/B>()/$1$2<\/A>$3/g;
1407 970         3872 s/((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="y" gnd="m"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>((?:[^<]*aimseartha|[Cc]h?athartha|[Cc]h?oitianta|[Gg]h?al\x{e1}nta|[Gg]h?inear\x{e1}lta|[Ll]og\x{e1}nta|[Mm]h?\x{ed}leata|[Nn]\x{e1}d\x{fa}rtha|(?:[Ii]dir)?[Nn]\x{e1}isi\x{fa}nta|[Ss]\x{f3}isialta|[Ss]peisialta|[Tt]h?raidisi\x{fa}nta))<\/B>()/$1$2<\/A>$3/g;
1408 970         9036 s/((?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="n"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:)?(?:)?(?:)?(?:]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1409 970         2022 s/([^<]+<\/A> )(?:)?(?:)?(?:)?(?:]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1410 970         1892 s/([^<]+<\/A> )(?:]+>)*(?:]*>)*(?:]*>)*<\/Z>((?:[^<]+(?:[^ae]|[^th][ae]|[^t]h[ae])))<\/B>()/$1$2<\/A>$3/g;
1411 970         2161 s/([^<]+<\/A> )(?:]+>)*(?:]*>)*(?:]*>)*<\/Z>((?:[^<]+(?:[^ae]|[^th][ae]|[^t]h[ae])))<\/B>()/$1$2<\/A>$3/g;
1412 970         1720 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( [^<]+<\/A>)/$1$2<\/N>$3/g;
1413 970         2299 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>( [^<]+<\/A>)/$1$2<\/N>$3/g;
1414 970         6990 s/((?:]*pl="n" gnt="n"[^>]*>[Aa]on<\/A>|(?:]*pl="n" gnt="n"[^>]*>)+<\/Z>[Aa]on<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1415 970         5538 s/((?:]*pl="n" gnt="n"[^>]*>[Aa]on<\/A>|(?:]*pl="n" gnt="n"[^>]*>)+<\/Z>[Aa]on<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1416 970         6159 s/((?:]*pl="n" gnt="n"[^>]*>[^<]+<\/A>|(?:]*pl="n" gnt="n"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:)?(?:)?(?:)?(?:]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1417 970         5492 s/((?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="n"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1418 970         4503 s/((?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>|(?:]*pl="n" gnt="n"[^>]*>)+<\/Z>[^<]+<\/B>) )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1419 970         2280 s/([Nn]a<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1420 970         2631 s/([Nn]a<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1421 970         1992 s/([Ss]na<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1422 970         2163 s/([Ss]na<\/S> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1423 970         5110 s/((?:<[AR][^>]*>[^<]+<\/[AR]>|(?:<[AR][^>]*>)+<\/Z>[^<]+<\/B>) (?:<[\/A-DF-Z][^>]*>)+an<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*)<\/B>()/$1$2<\/N>$3/g;
1424 970         6068 s/((?:]*pl="." gnt="." gnd="."[^>]*>[^<]+<\/N>|(?:]*pl="." gnt="." gnd="."[^>]*>)+<\/Z>[^<]+<\/B>) (?:<[\/A-DF-Z][^>]*>)+an<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*)<\/B>()/$1$2<\/N>$3/g;
1425 970         16894 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]o<\/[A-DF-Z]> )(?:)?(?:)?(?:)?(?:]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1426 970         2146 s/([Cc]homh<\/R> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1427 970         1854 s/([Cc]homh<\/R> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1428 970         6801 s/((?:<[\/A-DF-Z][^>]*>)+is<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1429 970         7742 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]o<\/[A-DF-Z]> )(?:]+>)+(?:<[AV][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1430 970         2091 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]o<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1431 970         2322 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]o<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1432 970         2440 s/((?:<[\/A-DF-Z][^>]*>)+[Gg]o<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1433 970         2233 s/([^<]+<\/S> )(?:)?(?:<[A-Z][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1434 970         2032 s/([Aa]n<\/T> )(?:)?(?:<[A-Z][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1435 970         10756 s/((?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:)?(?:<[A-Z][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1436 970         2088 s/([^<]+<\/S> )(?:<[A-Z][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1437 970         2178 s/([Aa]n<\/T> )(?:<[A-Z][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1438 970         3362 s/((?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:<[A-Z][^>]*>)*<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1439 970         1742 s/([^<]+<\/S> )(?:]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1440 970         2154 s/([Aa]n<\/T> )(?:]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1441 970         15621 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( (?:]*>[^<]+<\/P>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1442 970         9952 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( (?:<[\/A-DF-Z][^>]*>)+s\x{e9}<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1443 970         9556 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1444 970         9157 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( [^<]+<\/Y>)/$1$2<\/V>$3/g;
1445 970         4142 s/((?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1446 970         1691 s/([^<]+<\/S> )(?:]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1447 970         2002 s/([Aa]n<\/T> )(?:]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1448 970         6010 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( (?:]*>[^<]+<\/P>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1449 970         6147 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( (?:<[\/A-DF-Z][^>]*>)+s\x{e9}<\/[A-DF-Z]>)/$1$2<\/V>$3/g;
1450 970         5803 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( (?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/V>$3/g;
1451 970         5826 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:]+>)+<\/Z>([^<]+)<\/B>( [^<]+<\/Y>)/$1$2<\/V>$3/g;
1452 970         2911 s/((?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>) )(?:]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1453 970         9108 s/((?:<[\/A-DF-Z][^>]*>)+[\x{d3}\x{f3}]<\/[A-DF-Z]> )(?:)?<\/Z>((?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*)<\/B>()/$1$2<\/V>$3/g;
1454 970         9318 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:)?<\/Z>((?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*)<\/B>()/$1$2<\/N>$3/g;
1455 970         13765 s/((?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]> )(?:)?<\/Z>((?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*)<\/B>()/$1$2<\/V>$3/g;
1456 970         2450 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/R>$3/g;
1457 970         2443 s/()(?:<[^>]+>)+<\/Z>([Ll]ena)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/S>$3/g;
1458 970         2064 s/()(?:<[^>]+>)+<\/Z>([Ll]ena)<\/B>()/$1$2<\/D>$3/g;
1459 970         2592 s/()<\/Z>([^<][^<][^<]+)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/S>$3/g;
1460 970         2923 s/()<\/Z>([^<][^<][^<]+)<\/B>()/$1$2<\/D>$3/g;
1461 970         1896 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1462 970         1797 s/()(?:<[^>]+>)+<\/Z>([^<]+)<\/B>()/$1$2<\/Y>$3/g;
1463 970         2326 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1464 970         2067 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1465 970         1707 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1466 970         1963 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1467 970         1847 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1468 970         1687 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1469 970         1763 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/A>$3/g;
1470 970         1774 s/([^<]+<\/T> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1471 970         1878 s/([^<]+<\/T> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1472 970         4237 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^N][^>]*>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1473 970         2297 s/((?:[Aa]on|[Gg]ach)<\/A> )(?:<[^N][^>]*>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1474 970         6804 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1475 970         2196 s/((?:[Aa]on|[Gg]ach)<\/A> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1476 970         1729 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1477 970         2864 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1478 970         1897 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1479 970         1952 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1480 970         7074 s/((?:]*pl="." gnt="." gnd="."[^>]*>[^<]+<\/N>|(?:]*pl="." gnt="." gnd="."[^>]*>)+<\/Z>[^<]+<\/B>) [Aa]n<\/T> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1481 970         2164 s/([Aa]n<\/T> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1482 970         3788 s/((?:<[^\/N][^>]*>[^<]+<\/[^N]>|(?:<[^N][^>]*>)+<\/Z>[^<]+<\/B>) )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1483 970         2280 s/([^<]+<\/S> [Aa]n<\/T> )(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1484 970         1888 s/([Aa]n<\/T> )(?:)?<\/Z>((?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*)<\/B>()/$1$2<\/N>$3/g;
1485 970         3297 s/([^<]+<\/S> [Aa]n<\/T> )(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1486 970         2178 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]r<\/[A-DF-Z]> [Aa]n<\/T> )(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1487 970         1872 s/([Aa]n<\/T> )(?:)?<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/N>$3/g;
1488 970         2293 s/((?:<[^\/T][^>]*>[^<]+<\/[^T]>|(?:<[^T][^>]*>)+<\/Z>[^<]+<\/B>) (?:]*pl="." gnt="." gnd="."[^>]*>[^<]+<\/N>|(?:]*pl="." gnt="." gnd="."[^>]*>)+<\/Z>[^<]+<\/B>) [Aa]n<\/T> )(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1489 970         2405 s/()(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1490 970         2002 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1491 970         1939 s/()(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1492 970         1769 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1493 970         2056 s/([^<]*[A\x{c1}a\x{e1}]<\/D> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1494 970         1787 s/([^< ]+ [^<]+<\/S> na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1495 970         2135 s/((?:]*>[^<]+<\/N>|(?:]*>)+<\/Z>[^<]+<\/B>) na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1496 970         1826 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1497 970         2234 s/(na<\/T> )(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1498 970         1766 s/(na<\/T> )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1499 970         3921 s/((?:<[^\/N][^>]*>[^<]+<\/[^N]>|(?:<[^N][^>]*>)+<\/Z>[^<]+<\/B>) )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1500 970         3468 s/()(?:)?<\/Z>([^<]+)<\/B>( (?:<[NP][^>]*>[^<]+<\/[NP]>|(?:<[NP][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/S>$3/g;
1501 970         1799 s/()(?:)?<\/Z>([^<]+)<\/B>( na<\/T>)/$1$2<\/S>$3/g;
1502 970         3814 s/()(?:)?<\/Z>([^<]+)<\/B>( (?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1503 970         2895 s/()(?:)?<\/Z>([^<]+)<\/B>( (?:<[\/A-DF-Z][^>]*>)+seo<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1504 970         2809 s/()(?:)?<\/Z>([^<]+)<\/B>( (?:<[\/A-DF-Z][^>]*>)+sin<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1505 970         2539 s/()(?:)?<\/Z>([^<]+)<\/B>()/$1$2<\/C>$3/g;
1506 970         2175 s/()<\/Z>([^<]+)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1507 970         2216 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1508 970         1634 s/([Mm]ar<\/C> )<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/N>$3/g;
1509 970         3342 s/((?:<[^\/DSNT][^>]*>[^<]+<\/[^DSNT]>|(?:<[^DSNT][^>]*>)+<\/Z>[^<]+<\/B>) )<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/V>$3/g;
1510 970         1860 s/()<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/V>$3/g;
1511 970         1673 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1512 970         1955 s/()<\/Z>((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+)<\/B>()/$1$2<\/V>$3/g;
1513 970         2554 s/()(?:<[^>]+>)*(?:<[^>]+>)*<\/Z>(D'[^<]+)<\/B>()/$1$2<\/V>$3/g;
1514 970         2240 s/()((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>((?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  0         0  
1515 970         1894 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1516 970         2042 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1517 970         2057 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/V>$3/g;
1518 970         2936 s/()(?:<[^>]+>)+<\/Z>([Aa]r)<\/B>( (?:]*>[Ss](?:[\x{e9}\x{ed}]|iad(?:san)?|ise|eisean)<\/P>|(?:]*>)+<\/Z>[Ss](?:[\x{e9}\x{ed}]|iad(?:san)?|ise|eisean)<\/B>))/$1$2<\/V>$3/g;
1519 970         20861 s/((?:<[\/A-DF-Z][^>]*>)+[^<]+<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Aa]r)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1520 970         3330 s/()(?:<[^>]+>)+<\/Z>([Aa]r)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/Q>$3/g;
1521 970         4677 s/()(?:<[^>]+>)+<\/Z>([Aa]r)<\/B>()/$1$2<\/S>$3/g;
1522 970         4653 s/()((?:<[^>]+>)+)<\/Z>([^<]+)<\/B>( (?:]*>[Ss](?:[\x{e9}\x{ed}]|iad(?:san)?|ise|eisean)<\/P>|(?:]*>)+<\/Z>[Ss](?:[\x{e9}\x{ed}]|iad(?:san)?|ise|eisean)<\/B>))/"$1".strip_badpos($2,$3,'<[^V][^<]*.>')."$4"/eg;
  4         29  
1523 970         3304 s/()(?:<[^>]+>)+<\/Z>([Dd]e)<\/B>( (?:<[\/A-DF-Z][^>]*>)+a<\/[A-DF-Z]>)/$1$2<\/O>$3/g;
1524 970         3000 s/()(?:<[^>]+>)+<\/Z>([Dd]e)<\/B>( (?:<[CPSRV][^>]*>[^<]+<\/[CPSRV]>|(?:<[CPSRV][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/O>$3/g;
1525 970         4402 s/()(?:<[^>]+>)+<\/Z>([Dd]e)<\/B>()/$1$2<\/S>$3/g;
1526 970         1817 s/()(?:<[^>]+>)+<\/Z>(n?[Dd]h?earcadh)<\/B>()/$1$2<\/N>$3/g;
1527 970         1993 s/()(?:<[^>]+>)+<\/Z>(gur)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/C>$3/g;
1528 970         1780 s/()(?:<[^>]+>)+<\/Z>(gur)<\/B>()/$1$2<\/V>$3/g;
1529 970         1860 s/()(?:<[^>]+>)+<\/Z>(\x{d3})<\/B>( (?:<[\/A-DF-Z][^>]*>)+[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)/$1$2<\/Y>$3/g;
1530 970         1970 s/()(?:<[^>]+>)+<\/Z>(\x{d3})<\/B>( (?:<[\/A-DF-Z][^>]*>)+[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*WITHH<\/[A-DF-Z]>)/$1$2<\/Y>$3/g;
1531 970         1785 s/()(?:<[^>]+>)+<\/Z>(\x{d3})<\/B>( [^<]+<\/Y>)/$1$2<\/Y>$3/g;
1532 970         4364 s/()(?:<[^>]+>)+<\/Z>([\x{d3}\x{f3}])<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/C>$3/g;
1533 970         3482 s/()(?:<[^>]+>)+<\/Z>([\x{d3}\x{f3}])<\/B>()/$1$2<\/S>$3/g;
1534 970         2057 s/()(?:<[^>]+>)+<\/Z>(Luimnigh)<\/B>()/$1$2<\/N>$3/g;
1535 970         2473 s/((?:<[^\/N][^>]*>[^<]+<\/[^N]>|(?:<[^N][^>]*>)+<\/Z>[^<]+<\/B>) )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1536 970         2042 s/()(?:<[^>]+>)+<\/Z>(N\x{ed})<\/B>( (?:<[\/A-DF-Z][^>]*>)+[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)/$1$2<\/Y>$3/g;
1537 970         3555 s/()(?:<[^>]+>)+<\/Z>(N\x{ed})<\/B>( [^<]+<\/Y>)/$1$2<\/Y>$3/g;
1538 970         1880 s/()(?:<[^>]+>)+<\/Z>(N\x{ed})<\/B>()/$1$2<\/V>$3/g;
1539 970         7942 s/([^< ]+ [^<]+<\/S> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/D>$3/g;
1540 970         4293 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[\/A-DF-Z][^>]*>)+h[^<]+<\/[A-DF-Z]>)/$1$2<\/D>$3/g;
1541 970         3921 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>|(?:]*>)+<\/Z>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/B>))/$1$2<\/D>$3/g;
1542 970         3993 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*pl="y"[^>]*>[^<]+<\/N>|(?:]*pl="y"[^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/D>$3/g;
1543 970         2200 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[\/A-DF-Z][^>]*>)+ch\x{f3}ir<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1544 970         2234 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[\/A-DF-Z][^>]*>)+dh\x{ed}th<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1545 970         2171 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( d?[Tt]h?uarasc\x{e1}il<\/N>)/$1$2<\/D>$3/g;
1546 970         4791 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[^\/V][^>]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/[^V]>|(?:<[^V][^>]*>)+<\/Z>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/B>))/$1$2<\/S>$3/g;
1547 970         8011 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[\/A-DF-Z][^>]*>)+(?:bheith|cheannach|chur|dh\x{ed}ol|dhul|fhoghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|shol\x{e1}thar|theacht)<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1548 970         1785 s/([Nn]uair<\/C> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1549 970         1811 s/([Ff]ad is<\/C> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1550 970         1788 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]mhlaidh<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1551 970         1824 s/(ar \x{e9}igean<\/R> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1552 970         1789 s/([Cc]ad [Cc]huige<\/Q> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1553 970         2271 s/([Cc][^<]+<\/Q> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1554 970         2701 s/([Uu]air<\/N> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1555 970         2155 s/(h[Uu]air<\/N> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1556 970         10804 s/((?:<[\/A-DF-Z][^>]*>)+[Cc]\x{e1}<\/[A-DF-Z]> (?:]*>[Ff]had<\/N>|(?:]*>)+<\/Z>[Ff]had<\/B>) )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1557 970         1976 s/([Dd]h?\x{f3}igh<\/N> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1558 970         2102 s/((?:[Ff]h?\x{e1}th|g[Cc]\x{e1}s)<\/N> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1559 970         2055 s/((?:[\x{c1}\x{e1}]it|t[Ss]l\x{ed})<\/N> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1560 970         1906 s/(h[\x{c1}\x{e1}]it<\/N> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1561 970         6118 s/((?:]*pl="n"[^>]*>g?[Cc]h?aoi<\/N>|(?:]*pl="n"[^>]*>)+<\/Z>g?[Cc]h?aoi<\/B>) )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1562 970         2561 s/([Gg]ach<\/A> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/H>$3/g;
1563 970         2139 s/([^<]+<\/S> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/H>$3/g;
1564 970         10916 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]s<\/[A-DF-Z]> )(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/H>$3/g;
1565 970         11293 s/((?:<[\/A-DF-Z][^>]*>)+[Cc]\x{e9}<\/[A-DF-Z]> (?:]*>acu<\/O>|(?:]*>)+<\/Z>acu<\/B>) )(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/G>$3/g;
1566 970         4104 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>|(?:]*>)+<\/Z>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/B>))/$1$2<\/H>$3/g;
1567 970         3571 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/V>|(?:]*>)+<\/Z>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/B>))/$1$2<\/G>$3/g;
1568 970         3432 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[\/A-DF-Z][^>]*>)+[Dd]'[^<]+<\/[A-DF-Z]>)/$1$2<\/G>$3/g;
1569 970         3854 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1570 970         5725 s/((?:<[GHU][^>]*>[Aa]<\/[GHU]>|(?:<[GHU][^>]*>)+<\/Z>[Aa]<\/B>) )((?:<[^>]+>)+)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'<[^V][^>]*.>')."$4"/eg;
  2         11  
1571 970         3559 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>( (?:<[\/A-DF-Z][^>]*>)+[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/[A-DF-Z]>)/$1$2<\/S>$3/g;
1572 970         4210 s/()(?:<[^>]+>)+<\/Z>([Aa])<\/B>()/$1$2<\/D>$3/g;
1573 970         2070 s/()(?:<[^>]+>)+<\/Z>(d\x{f3})<\/B>()/$1$2<\/O>$3/g;
1574 970         1861 s/()(?:<[^>]+>)+<\/Z>([Ll]eis)<\/B>()/$1$2<\/O>$3/g;
1575 970         2100 s/()<\/Z>([^<]+)<\/B>( (?:<[RS][^>]*>[^<]+<\/[RS]>|(?:<[RS][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/O>$3/g;
1576 970         2001 s/()<\/Z>([^<]+)<\/B>()/$1$2<\/S>$3/g;
1577 970         2295 s/()(?:<[^>]+>)+<\/Z>([Dd]ar)<\/B>( (?:<[DOST][^>]*>[^<]+<\/[DOST]>|(?:<[DOST][^>]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/S>$3/g;
1578 970         2085 s/()(?:<[^>]+>)+<\/Z>([Dd]ar)<\/B>()/$1$2<\/V>$3/g;
1579 970         1978 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed}or)<\/B>( (?:]*>[^<]+<\/V>|(?:]*>)+<\/Z>[^<]+<\/B>))/$1$2<\/U>$3/g;
1580 970         1853 s/()(?:<[^>]+>)+<\/Z>([Nn]\x{ed}or)<\/B>()/$1$2<\/V>$3/g;
1581 970         2933 s/([^<]+<\/V> )(?:)?<\/Z>((?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*)<\/B>()/$1$2<\/V>$3/g;
1582 970         7887 s/((?:<[^\/ACDNRSTY][^>]*>[^<]+<\/[^ACDNRSTY]>|(?:<[^ACDNRSTY][^>]*>)+<\/Z>[^<]+<\/B>) )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  12         78  
1583 970         2421 s/((?:<[^\/ACNRSY][^>]*>[^<]+<\/[^ACNRSY]>|(?:<[^ACNRSY][^>]*>)+<\/Z>[^<]+<\/B>) [^<]+<\/T> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  5         64  
1584 970         1865 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  0         0  
1585 970         2590 s/((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> )((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  4         26  
1586 970         2199 s/((?:]*pl="." gnt="." gnd="."[^>]*>[^<]+<\/N>|(?:]*pl="." gnt="." gnd="."[^>]*>)+<\/Z>[^<]+<\/B>) )<\/Z>([^<]+)<\/B>()/$1$2<\/N>$3/g;
1587 970         2348 s/()((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>((?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  0         0  
1588 970         2764 s/()((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>((?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  0         0  
1589 970         6686 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  3         25  
1590 970         3492 s/((?:<[\/A-DF-Z][^>]*>)+[Aa]n<\/[A-DF-Z]> )((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  1         10  
1591 970         5455 s/((?:<[^\/C][^>]*>(?:...|[^Nn]|.[^\x{e1}\x{c1}])[^<]*<\/[^C]>|(?:<[^C][^>]*>)+<\/Z>(?:...|[^Nn]|.[^\x{e1}\x{c1}])[^<]*<\/B>) )((?:<[^>]+>)*(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>()/"$1".strip_badpos($2,$3,'')."$4"/eg;
  33         197  
1592 970         6543 s/()((?:<[^>]+>)*]+>(?:<[^>]+>)*)<\/Z>([^<]+)<\/B>( (?:]*gnt="y"[^>]*>[^<]+<\/N>|(?:]*gnt="y"[^>]*>)+<\/Z>[^<]+<\/B>))/"$1".strip_badpos($2,$3,']+.>')."$4"/eg;
  2         11  
1593             }
1594             }
1595              
1596             sub comhshuite
1597             {
1598 485     485 0 1607 for ($_[0]) {
1599 485         2506 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]s)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ile)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1600 485         1904 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ile)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1601 485         32660 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]hloi?g)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1602 485         1574 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1603 485         1533 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(thiarcais)<\/[A-DF-Z]>/$1 $2<\/I>/g;
1604 485         1465 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]gus)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(araile)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1605 485         1598 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(aghaidh)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1606 485         1385 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ais)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1607 485         1331 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(athl\x{e1}imh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1608 485         1318 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(atr\x{e1}th)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1609 485         21800 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ba[lo]l)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1610 485         1379 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ballchrith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1611 485         1458 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(barr)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1612 485         1548 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bior)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1613 485         1353 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(b\x{ed}s)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1614 485         1546 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1615 485         1434 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bh\x{ed}thin)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1616 485         1411 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bogadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1617 485         1569 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(b\x{f3}il\x{e9}agar)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1618 485         1281 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bord)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1619 485         1951 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(buile)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1620 485         1573 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bun)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1621 485         1212 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cairde)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1622 485         1207 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ceal)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1623 485         1654 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(c\x{e9}alacan)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1624 485         1188 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ceant)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1625 485         1210 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ceathr\x{fa}in)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1626 485         1131 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{fa}l)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1627 485         1453 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(c\x{ed}os)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1628 485         1443 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cip\x{ed}n\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1629 485         1730 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cl\x{e9})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1630 485         1256 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cois)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1631 485         1389 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(comhaois)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1632 485         1174 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(comhbhr\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1633 485         1372 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(comhch\x{e9}im)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1634 485         1088 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(comhfhad)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1635 485         1663 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(comhsc\x{f3}r)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1636 485         1446 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cosaint)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1637 485         1196 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cothrom)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1638 485         1762 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(crith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1639 485         1222 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(crochadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1640 485         1208 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cuairt)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1641 485         1443 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(d\x{e1}ir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1642 485         1428 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dearglasadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1643 485         1176 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deargmheisce)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1644 485         1839 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dei[cl])<\/[A-DF-Z]>/$1 $2<\/R>/g;
1645 485         1497 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deighilt)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1646 485         1415 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deireadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1647 485         1290 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deiseal)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1648 485         1197 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deora\x{ed}ocht)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1649 485         1306 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(d\x{ed}birt)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1650 485         1160 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(d\x{ed}ol)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1651 485         1145 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(d\x{ed}ot\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1652 485         1192 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(di\x{fa}it\x{e9})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1653 485         1435 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(d\x{f3}igh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1654 485         1244 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(doimhneacht)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1655 485         1337 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(domhan)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1656 485         1311 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dt\x{fa}s)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1657 485         1397 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dualgas)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1658 485         1158 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}igean)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1659 485         1465 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fad)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1660 485         2590 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1661 485         2263 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1662 485         1372 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(faonoscailt)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1663 485         1527 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(farraige)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1664 485         1434 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(feadh)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1665 485         1327 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{e9}arach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1666 485         1265 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(feitheamh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1667 485         1396 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fiannas)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1668 485         1253 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fiar)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1669 485         1172 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fionra\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1670 485         5362 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fiuchadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1671 485         1453 s/(?:<[\/A-DF-Z][^>]*>)+([Aa][gr])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(foluain)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1672 485         1385 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{f3}namh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1673 485         1270 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(forbh\x{e1}s)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1674 485         1207 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(foscadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1675 485         1413 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fost\x{fa})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1676 485         1422 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fruili\x{fa})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1677 485         1271 s/(?:<[\/A-DF-Z][^>]*>)+([Aa][gr])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fuaidreamh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1678 485         1459 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fud)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1679 485         1318 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(garda)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1680 485         1342 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gc\x{fa}l)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1681 485         1543 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gor)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1682 485         1288 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1683 485         1299 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leithligh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1684 485         1148 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(liobarna)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1685 485         1740 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(lorg)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1686 485         1570 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(maidin)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1687 485         1272 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(maos)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1688 485         1350 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(marthain)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1689 485         1140 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(me\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1690 485         1048 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(meara\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1691 485         979 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mearbhall)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1692 485         1090 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mear\x{fa})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1693 485         1466 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(meisce)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1694 485         1332 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mire)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1695 485         1066 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(m\x{ed}threoir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1696 485         1394 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(muin)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1697 485         1537 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(muir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1698 485         1329 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(nd\x{f3}igh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1699 485         945 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(neamhchead)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1700 485         1722 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ndiaidh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1701 485         1591 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(n\x{f3}s)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1702 485         3197 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Pp]\x{e1}r)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1703 485         1533 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(pinsean)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1704 485         1452 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(promhadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1705 485         1322 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(saoire)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1706 485         1540 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(seachr\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1707 485         1344 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(seirbh\x{ed}s)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1708 485         1351 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sileadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1709 485         1840 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(si\x{fa}l)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1710 485         1126 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sn\x{e1}mh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1711 485         1633 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sochar)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1712 485         1385 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sodar)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1713 485         1744 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(son)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1714 485         1415 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(strae)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1715 485         1611 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(taispe\x{e1}int)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1716 485         1506 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(talamh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1717 485         1299 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(teachtadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1718 485         1277 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(teaghr\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1719 485         1539 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(teitheadh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1720 485         1257 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(th\x{f3}ir)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1721 485         1478 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(t\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1722 485         1158 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(tinneall)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1723 485         1677 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(t\x{ed}r)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1724 485         1489 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ti\x{fa}s)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1725 485         1628 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(togradh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1726 485         1230 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(tosach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1727 485         1385 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(triail)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1728 485         1541 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(tuathal)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1729 485         1156 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(uairibh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1730 485         1252 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]rna)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mh\x{e1}rach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1731 485         1441 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r\x{fa})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(am\x{e1}rach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1732 485         1202 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r\x{fa})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(anuraidh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1733 485         1665 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r\x{fa})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ar\x{e9}ir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1734 485         1522 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r\x{fa})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(inn\x{e9})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1735 485         1492 s/(?:<[\/A-DF-Z][^>]*>)+([Bb]ainte)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Aa]mach)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1736 485         1307 s/(?:<[\/A-DF-Z][^>]*>)+(m?[Bb]h?eo)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(beathach)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1737 485         1212 s/(?:<[\/A-DF-Z][^>]*>)+(m?[Bb]h?\x{f3}\x{ed}n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]>/$1 $2<\/N>/g;
1738 485         1334 s/(?:<[\/A-DF-Z][^>]*>)+(m?[Bb]h?r\x{ed}n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{f3}g)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1739 485         1557 s/(?:<[\/A-DF-Z][^>]*>)+(m?[Bb]h?uaileam)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sciath)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1740 485         1453 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mh\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1741 485         1447 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(a)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mh\x{e9}ad)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1742 485         1419 s/(?:<[\/A-DF-Z][^>]*>)+(m?Bh?aile)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{c1}tha)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Cliath)<\/[A-DF-Z]>/$1 $2 $3<\/N>/g;
1743 485         1945 s/(?:<[\/A-DF-Z][^>]*>)+([Cc][\x{e1}\x{e9}])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Mm]h\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/Q>/g;
1744 485         1174 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]ad)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]huige)<\/[A-DF-Z]>/$1 $2<\/Q>/g;
1745 485         1513 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e1})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mh\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1746 485         1170 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]\x{e1}r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bith)<\/[A-DF-Z]>/$1 $2<\/Q>/g;
1747 485         1307 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(is)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(moite)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1748 485         1735 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]eannann)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(c\x{e9}anna)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1749 485         1486 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]heannann)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}anna)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1750 485         1180 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]iolar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(chiot)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1751 485         1026 s/(?:<[\/A-DF-Z][^>]*>)+(g?[Cc]h?\x{ed}or)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(thuathail)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1752 485         1747 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]r\x{e9}ad)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{e1})<\/[A-DF-Z]>/$1 $2<\/Q>/g;
1753 485         5763 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]h\x{e1})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1754 485         1643 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]r\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1755 485         2072 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]eithre)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1756 485         1916 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]\x{fa}ig)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1757 485         1907 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ad)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1758 485         1732 s/(?:<[\/A-DF-Z][^>]*>)+(g?[Cc]h?odladh)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(grif\x{ed}n)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1759 485         1318 s/(?:<[\/A-DF-Z][^>]*>)+(g?[Cc]h?os)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bolg)<\/[A-DF-Z]>/$1 $2 $3<\/N>/g;
1760 485         1032 s/(?:<[\/A-DF-Z][^>]*>)+(g?[Cc]h?othrom)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(na)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]\x{e9}inne)<\/[A-DF-Z]>/$1 $2 $3<\/N>/g;
1761 485         1569 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]hun)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cinn)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1762 485         1283 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]hun)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(tosaigh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1763 485         1530 s/(?:<[\/A-DF-Z][^>]*>)+(g?[Cc]h?ur)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]huige)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1764 485         1466 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]ar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(nd\x{f3}igh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1765 485         1405 s/(?:<[\/A-DF-Z][^>]*>)+([Dd][e\x{e1}])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bh\x{ed}thin)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1766 485         1104 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e1})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}is)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1767 485         1626 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]allach)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dubh)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1768 485         1717 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]arb)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ainm)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1769 485         1584 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bharr)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1770 485         1692 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(chois)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1771 485         1657 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{f3}ir)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1772 485         1275 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(chuid)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1773 485         1527 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dheasca)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1774 485         1448 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dh\x{ed}obh\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1775 485         1254 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ghlanmheabhair)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1776 485         2003 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(r\x{e9}ir)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1777 485         1366 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sh\x{ed}or)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1778 485         1575 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sciot\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1779 485         1404 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(thairbhe)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1780 485         1573 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(thaisme)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1781 485         1696 s/(?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Luain)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1782 485         1419 s/(?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(M\x{e1}irt)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1783 485         1234 s/(?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(C\x{e9}adaoin)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1784 485         1114 s/(?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(hAoine)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1785 485         1510 s/(?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Sathairn)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1786 485         1199 s/(?:<[\/A-DF-Z][^>]*>)+(D\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Domhnaigh)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1787 485         2297 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h[Aa]on)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1788 485         1293 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{f3})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]h\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1789 485         2208 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Tt]r\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1790 485         1212 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]eathair)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1791 485         1616 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]\x{fa}ig)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1792 485         2056 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ss]\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1793 485         2026 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ss]eacht)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1794 485         4406 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h[Oo]cht)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1795 485         2290 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Nn]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1796 485         1737 s/(?:<[\/A-DF-Z][^>]*>)+([Aa]on)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1797 485         1395 s/(?:<[\/A-DF-Z][^>]*>)+([Dd]\x{f3})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]h\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1798 485         2140 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]r\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1799 485         1680 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]eathair)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1800 485         1558 s/(?:<[\/A-DF-Z][^>]*>)+([Cc]\x{fa}ig)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1801 485         1776 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]\x{e9})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1802 485         2314 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]eacht)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1803 485         3889 s/(?:<[\/A-DF-Z][^>]*>)+([Oo]cht)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1804 485         2238 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1805 485         5203 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h[Aa]on)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1806 485         38193 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{f3})<\/[A-DF-Z]>/$1 $2<\/A>/g;
1807 485         3726 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Tt]r\x{ed})<\/[A-DF-Z]>/$1 $2<\/A>/g;
1808 485         1328 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]eathair)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1809 485         1688 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]\x{fa}ig)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1810 485         30771 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ss]\x{e9})<\/[A-DF-Z]>/$1 $2<\/A>/g;
1811 485         2036 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ss]eacht)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1812 485         4564 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h[Oo]cht)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1813 485         2387 s/(?:<[\/A-DF-Z][^>]*>)+([Aa])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Nn]aoi)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1814 485         1358 s/(?:<[\/A-DF-Z][^>]*>)+(n?Dh?eireadh)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(F\x{f3}mhair)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1815 485         1334 s/(?:<[\/A-DF-Z][^>]*>)+([\x{c9}\x{e9}]asca)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Pp]\x{e9}asca)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1816 485         1181 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]\x{e1})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtaobh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1817 485         1771 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]ad)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(is)<\/[A-DF-Z]>/$1 $2<\/C>/g;
1818 485         1228 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhr\x{e1}id)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1819 485         1396 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhun)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1820 485         1255 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cheann)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1821 485         1362 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cheathair)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1822 485         1080 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(choinne)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1823 485         1313 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deara)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1824 485         1183 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dh\x{e9}in)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1825 485         1507 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dheoidh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1826 485         1487 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dh\x{f3})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1827 485         1444 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e1}nseol)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1828 485         1379 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e1}thair)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1829 485         1522 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1830 485         1195 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(r\x{e9}ir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1831 485         1266 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]aoi)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(seach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1832 485         1348 s/(?:<[\/A-DF-Z][^>]*>)+(Fear)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Manach)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1833 485         1142 s/(?:<[\/A-DF-Z][^>]*>)+(Fh?ianna)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(F\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1834 485         1618 s/(?:<[\/A-DF-Z][^>]*>)+(bhFianna)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(F\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1835 485         1189 s/(?:<[\/A-DF-Z][^>]*>)+(d'Fhianna)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(F\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1836 485         1203 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]ionna)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]eanna)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1837 485         1338 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]\x{ed}orchaoin)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{e1}ilte)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1838 485         1405 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]ite)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]uaite)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1839 485         1818 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]ud)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]ad)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1840 485         1159 s/(?:<[\/A-DF-Z][^>]*>)+([Ff]uta)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]ata)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1841 485         6299 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]ach)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(re)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1842 485         1297 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]an)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]hios)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1843 485         1498 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]an)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fi\x{fa})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1844 485         1300 s/(?:<[\/A-DF-Z][^>]*>)+(n?Gh?aoth)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Dobhair)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1845 485         1312 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]liog)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gleag)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1846 485         1347 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(br\x{e1}ch)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1847 485         1569 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ceann)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1848 485         1523 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch\x{e9}ile)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1849 485         1423 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]eimhin)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1850 485         1857 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(deo)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1851 485         1510 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(d\x{ed}reach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1852 485         1334 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dt\x{ed})<\/[A-DF-Z]>/$1 $2<\/S>/g;
1853 485         958 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(feillbhinn)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1854 485         1396 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fi\x{fa})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1855 485         1331 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{f3}ill)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1856 485         1250 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(folcanta)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(falcanta)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1857 485         1194 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fras)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1858 485         947 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h\x{e1}irithe)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1859 485         1176 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h\x{e9}ag)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1860 485         1225 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h\x{e9}asca)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1861 485         1024 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(hioml\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1862 485         1428 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e9}ir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1863 485         1260 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1864 485         1414 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leor)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1865 485         1147 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(luath)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1866 485         1411 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(minic)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1867 485         1203 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(nuige)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1868 485         1402 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(t\x{f3}in)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(poill)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1869 485         1521 s/(?:<[\/A-DF-Z][^>]*>)+([Gg]o)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(treis)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1870 485         1344 s/(?:<[\/A-DF-Z][^>]*>)+(Hong)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Cong)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1871 485         1323 s/(?:<[\/A-DF-Z][^>]*>)+([Hh]\x{fa}m)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(n\x{e1})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h\x{e1}m)<\/[A-DF-Z]>/$1 $2 $3<\/N>/g;
1872 485         1080 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhf\x{e1}ch)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1873 485         1364 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfad)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1874 485         1438 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfeac)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1875 485         1136 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfeidhm)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1876 485         999 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfeighil)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1877 485         1063 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfianaise)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1878 485         1162 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfochair)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1879 485         1578 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfogas)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1880 485         1076 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfolach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1881 485         1109 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtaisce)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1882 485         1263 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dteagmh\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1883 485         1450 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dteannta)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1884 485         971 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dt\x{f3}lamh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1885 485         1213 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtr\x{e1}tha)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1886 485         1350 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtreis)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1887 485         1327 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtreo)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1888 485         1326 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtuilleama\x{ed})<\/[A-DF-Z]>/$1 $2<\/S>/g;
1889 485         1037 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcaitheamh)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1890 485         1341 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gceann)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1891 485         1135 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gceartl\x{e1}r)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1892 485         1107 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gc\x{e9}in)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1893 485         1148 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gceist)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1894 485         1230 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcoinne)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1895 485         1214 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gc\x{f3}ir)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1896 485         1137 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcoitinne)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1897 485         1107 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcomhair)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1898 485         1156 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcomhchlos)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1899 485         1133 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcomhthr\x{e1}th)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1900 485         1332 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gc\x{f3}na\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1901 485         1482 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcosamar)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1902 485         1072 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcr\x{ed}ch)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1903 485         1751 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gcuideachta)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1904 485         1447 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e1}r)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1905 485         1459 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e1}thair)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1906 485         1174 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(l\x{e9}ig)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1907 485         1284 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leith)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1908 485         1357 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mbliana)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1909 485         1442 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(mbun)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1910 485         1304 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(measc)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1911 485         1515 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(nd\x{e1}ir\x{ed}re)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1912 485         1367 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ndiaidh)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1913 485         1673 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ngach)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1914 485         1293 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ngan)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fhios)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1915 485         1136 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ngearr)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1916 485         1043 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(rith)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1917 485         1133 s/(?:<[\/A-DF-Z][^>]*>)+([Ii])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(s\x{e1}inn)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1918 485         1125 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]dir)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cham\x{e1}in)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1919 485         1266 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(aghaidh)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1920 485         1139 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(aice)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1921 485         1064 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(aicearracht)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1922 485         1488 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ainneoin)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1923 485         1216 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(airde)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1924 485         1154 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(airicis)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1925 485         2222 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ann)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1926 485         1317 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}adan)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1927 485         1218 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}ind\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1928 485         1054 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}ineacht)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1929 485         1352 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(imeacht)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1930 485         1420 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ionad)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1931 485         1174 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]na)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(aice)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1932 485         1068 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]na)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ch?olgsheasamh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1933 485         1153 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]na)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(leith)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1934 485         1244 s/(?:<[\/A-DF-Z][^>]*>)+([Ii]na)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(steillbheatha)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1935 485         1304 s/(?:<[\/A-DF-Z][^>]*>)+(hInis)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Me\x{e1}in)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1936 485         1391 s/(?:<[\/A-DF-Z][^>]*>)+(Inis)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Me\x{e1}in)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1937 485         1161 s/(?:<[\/A-DF-Z][^>]*>)+(hInis)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(M\x{f3}r)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1938 485         1608 s/(?:<[\/A-DF-Z][^>]*>)+(Inis)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(M\x{f3}r)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1939 485         1977 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Cc]h\x{e9}ile)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1940 485         1124 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cois)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1941 485         1265 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ana\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1942 485         1251 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]eireanas)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1943 485         1396 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]eice\x{e1}il)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1944 485         1258 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(haghaidh)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1945 485         1073 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(hais)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1946 485         3404 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ll]inn)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1947 485         1232 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]i\x{fa}tar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}atar)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1948 485         1269 s/(?:<[\/A-DF-Z][^>]*>)+(Loch)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Garman)<\/[A-DF-Z]>/$1 $2<\/Y>/g;
1949 485         1333 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]\x{fa}b)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Aa]r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ll]\x{e1}r)<\/[A-DF-Z]>/$1 $2 $3<\/N>/g;
1950 485         1117 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]u\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(gaidhte)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1951 485         2094 s/(?:<[\/A-DF-Z][^>]*>)+([Ll]uthairt)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(lathairt)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1952 485         1163 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]h?ac)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(siobh\x{e1}in)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1953 485         2415 s/(?:<[\/A-DF-Z][^>]*>)+(Mh?aigh)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Eo)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1954 485         1184 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]ar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dhea)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1955 485         2254 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]ar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sin)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{e9}in)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1956 485         1213 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]eacan)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ragaim)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1957 485         1039 s/(?:<[\/A-DF-Z][^>]*>)+(Mh?e\x{e1}n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(F\x{f3}mhair)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1958 485         884 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]h?\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Feabhra)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1959 485         2862 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]h?\x{f3}r)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ll]e)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Rr]\x{e1})<\/[A-DF-Z]>/$1 $2 $3<\/A>/g;
1960 485         1127 s/(?:<[\/A-DF-Z][^>]*>)+([Mm]ugadh)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(magadh)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1961 485         1107 s/(?:<[\/A-DF-Z][^>]*>)+(Mh?uir)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(nIocht)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1962 485         978 s/(?:<[\/A-DF-Z][^>]*>)+(na)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bhfud)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1963 485         1210 s/(?:<[\/A-DF-Z][^>]*>)+(neachtar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(acu)<\/[A-DF-Z]>/

$1 $2<\/P>/g;

1964 485         1428 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ba)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1965 485         1272 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(hamh\x{e1}in)<\/[A-DF-Z]>/$1 $2<\/U>/g;
1966 485         1084 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(hamhlaidh)<\/[A-DF-Z]>/$1 $2<\/U>/g;
1967 485         1365 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(hansa)<\/[A-DF-Z]>/$1 $2<\/U>/g;
1968 485         1084 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed}os)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Dd]\x{e9}ana\x{ed})<\/[A-DF-Z]>/$1 $2<\/R>/g;
1969 485         1599 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed}os)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ff]earr)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1970 485         1652 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]\x{ed}os)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Mm]\x{f3})<\/[A-DF-Z]>/$1 $2<\/A>/g;
1971 485         1079 s/(?:<[\/A-DF-Z][^>]*>)+([Nn]i\x{fa}dar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ne\x{e1}dar)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1972 485         1353 s/(?:<[\/A-DF-Z][^>]*>)+([\x{d3}\x{f3}])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(chianaibh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1973 485         1335 s/(?:<[\/A-DF-Z][^>]*>)+([\x{d3}\x{f3}])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dheas)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1974 485         1204 s/(?:<[\/A-DF-Z][^>]*>)+([\x{d3}\x{f3}])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(thuaidh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1975 485         1246 s/(?:<[\/A-DF-Z][^>]*>)+([\x{d3}\x{f3}])<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(shin)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1976 485         1087 s/(?:<[\/A-DF-Z][^>]*>)+([Oo]s)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cionn)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1977 485         1304 s/(?:<[\/A-DF-Z][^>]*>)+([Oo]s)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(coinne)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1978 485         1154 s/(?:<[\/A-DF-Z][^>]*>)+([Oo]s)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(comhair)<\/[A-DF-Z]>/$1 $2<\/S>/g;
1979 485         1235 s/(?:<[\/A-DF-Z][^>]*>)+([Pp]linc)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(pleainc)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1980 485         1187 s/(?:<[\/A-DF-Z][^>]*>)+([Rr]aiple)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(h\x{fa}ta)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1981 485         1194 s/(?:<[\/A-DF-Z][^>]*>)+([Rr]ibe)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(r\x{f3}ib\x{e9}is)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1982 485         1273 s/(?:<[\/A-DF-Z][^>]*>)+([Rr]ib\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(r\x{f3}ib\x{e9}is)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1983 485         1230 s/(?:<[\/A-DF-Z][^>]*>)+(Ros)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Com\x{e1}in)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1984 485         5427 s/(?:<[\/A-DF-Z][^>]*>)+(Ros)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Muc)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1985 485         1211 s/(?:<[\/A-DF-Z][^>]*>)+([Rr]uaille)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(buaille)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1986 485         1209 s/(?:<[\/A-DF-Z][^>]*>)+([Rr]up)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Rr]ap)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1987 485         1186 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]a)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(treis)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1988 485         1099 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]a)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(tsl\x{e1}nchruinne)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1989 485         1067 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]an)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e1}ireamh)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1990 485         1646 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]an)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(fhaopach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1991 485         1382 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]aochan)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(c\x{e9}ille)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1992 485         1700 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]aor)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ii]n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Aa]isce)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
1993 485         1244 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]cun)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(scan)<\/[A-DF-Z]>/$1 $2<\/R>/g;
1994 485         2378 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]eo)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(caite)<\/[A-DF-Z]>/$1 $2<\/A>/g;
1995 485         1266 s/(?:<[\/A-DF-Z][^>]*>)+(Sh?inn)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(F\x{e9}in)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1996 485         1210 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]i\x{fa}n)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(sinc\x{ed}n)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1997 485         1578 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]pior)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(spear)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1998 485         1127 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]teig)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(meig)<\/[A-DF-Z]>/$1 $2<\/N>/g;
1999 485         1271 s/(?:<[\/A-DF-Z][^>]*>)+([Ss]\x{fa}m)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(s\x{e1}m)<\/[A-DF-Z]>/$1 $2<\/N>/g;
2000 485         1354 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]h?amhach)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(t\x{e1}isc)<\/[A-DF-Z]>/$1 $2<\/N>/g;
2001 485         1225 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]ar)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(\x{e9}is)<\/[A-DF-Z]>/$1 $2<\/S>/g;
2002 485         1208 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(barr)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2003 485         1835 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bord)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2004 485         1147 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(br\x{e1}id)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2005 485         1842 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cailc)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2006 485         1313 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ceal)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2007 485         1255 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(ceann)<\/[A-DF-Z]>/$1 $2<\/S>/g;
2008 485         1098 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cionn)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2009 485         1306 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(cuimse)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2010 485         1338 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(farraige)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2011 485         1127 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(f\x{f3}ir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2012 485         1610 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(lear)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2013 485         1326 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(maoil)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2014 485         1418 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(me\x{e1}n)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2015 485         1564 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(muir)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2016 485         1485 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+([Ss]\x{e1}ile)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2017 485         1188 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(tairseach)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2018 485         1600 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(t\x{e9}arma)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2019 485         1300 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(teorainn)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2020 485         1287 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(t\x{ed}r)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2021 485         1195 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]har)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(toinn)<\/[A-DF-Z]>/$1 $2<\/R>/g;
2022 485         1476 s/(?:<[\/A-DF-Z][^>]*>)+([Tt]r\x{ed})<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(bh\x{ed}thin)<\/[A-DF-Z]>/$1 $2<\/S>/g;
2023 485         1508 s/(?:<[\/A-DF-Z][^>]*>)+(U\x{ed}bh)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(Fhail\x{ed})<\/[A-DF-Z]>/$1 $2<\/Y>/g;
2024 485         2754 s/(?:<[\/A-DF-Z][^>]*>)+([Uu]m)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(an)<\/[A-DF-Z]> (?:<[\/A-DF-Z][^>]*>)+(dtaca)<\/[A-DF-Z]>/$1 $2 $3<\/R>/g;
2025             }
2026             }
2027              
2028             # analogue of "escape_punc" in bash version
2029             sub giorr
2030             {
2031 1     1 0 5 for ($_[0]) {
2032 1         53 s/^/ /;
2033 1         1108 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}0-9-][0-9])([.?!])/$1$NOBD$2/g;
2034 1         1201 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}0-9-][0-9][0-9])([.?!])/$1$NOBD$2/g;
2035 1         96 s/(\...)([.?!])/$1$NOBD$2/g;
2036 1         130 s/\.(ie|uk)$NOBD([.?!])/.$1$2/g;
2037 1         162 s/(\..)([.?!])/$1$NOBD$2/g;
2038 1         149 s/(\.)([.?!])/$1$NOBD$2/g;
2039 1         118 s/([IVX][IVX])([.?!])/$1$NOBD$2/g;
2040 1         1492 s/([^\\A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}'-][A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])([.?!])/$1$NOBD$2/g;
2041 1         143 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][\x{e9}\x{ed}])$NOBD([.?!])/$1$2/g;
2042 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Beo)!/$1$NOBD!/g;
2043 1         32 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Yy]ahoo)!/$1$NOBD!/g;
2044 1         33 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Aib)\./$1$NOBD./g;
2045 1         33 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Ath)\./$1$NOBD./g;
2046 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Beal)\./$1$NOBD./g;
2047 1         41 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]bl)\./$1$NOBD./g;
2048 1         45 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Bn)\./$1$NOBD./g;
2049 1         42 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Br)\./$1$NOBD./g;
2050 1         41 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Cc]aib)\./$1$NOBD./g;
2051 1         42 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]cc)\./$1$NOBD./g;
2052 1         41 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]cf)\./$1$NOBD./g;
2053 1         42 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Cd)\./$1$NOBD./g;
2054 1         43 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Ch)\./$1$NOBD./g;
2055 1         42 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Co)\./$1$NOBD./g;
2056 1         40 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Cho)\./$1$NOBD./g;
2057 1         86 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]cit)\./$1$NOBD./g;
2058 1         59 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Dr)\./$1$NOBD./g;
2059 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Eag)\./$1$NOBD./g;
2060 1         32 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Ean)\./$1$NOBD./g;
2061 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]etc)\./$1$NOBD./g;
2062 1         23 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Feabh)\./$1$NOBD./g;
2063 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Fig)\./$1$NOBD./g;
2064 1         25 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]F\x{f3}mh)\./$1$NOBD./g;
2065 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Fr)\./$1$NOBD./g;
2066 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]gCo)\./$1$NOBD./g;
2067 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]hor)\./$1$NOBD./g;
2068 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ii]bid)\./$1$NOBD./g;
2069 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ii]ml)\./$1$NOBD./g;
2070 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Inc)\./$1$NOBD./g;
2071 1         22 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]\x{cd}ocht)\./$1$NOBD./g;
2072 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Jr)\./$1$NOBD./g;
2073 1         40 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ll]ch)\./$1$NOBD./g;
2074 1         39 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ll]gh)\./$1$NOBD./g;
2075 1         28 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Ltd)\./$1$NOBD./g;
2076 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]L\x{fa}n)\./$1$NOBD./g;
2077 1         28 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]M\x{e1}r)\./$1$NOBD./g;
2078 1         53 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Meith)\./$1$NOBD./g;
2079 1         37 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Mr)\./$1$NOBD./g;
2080 1         38 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Ms)\./$1$NOBD./g;
2081 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Mrs)\./$1$NOBD./g;
2082 1         53 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Nn]o)\./$1$NOBD./g;
2083 1         24 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Noll)\./$1$NOBD./g;
2084 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]op)\./$1$NOBD./g;
2085 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]pp)\./$1$NOBD./g;
2086 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]rl)\./$1$NOBD./g;
2087 1         26 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Samh)\./$1$NOBD./g;
2088 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]sbh)\./$1$NOBD./g;
2089 1         35 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Sc)\./$1$NOBD./g;
2090 1         37 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Sr)\./$1$NOBD./g;
2091 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]St)\./$1$NOBD./g;
2092 1         57 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ss]h)\./$1$NOBD./g;
2093 1         46 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ss]p)\./$1$NOBD./g;
2094 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Ss]q)\./$1$NOBD./g;
2095 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]srl)\./$1$NOBD./g;
2096 1         21 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]taesp)\./$1$NOBD./g;
2097 1         24 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]tAth)\./$1$NOBD./g;
2098 1         26 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]teil)\./$1$NOBD./g;
2099 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Teo)\./$1$NOBD./g;
2100 1         24 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]tOll)\./$1$NOBD./g;
2101 1         36 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]tr)\./$1$NOBD./g;
2102 1         29 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]tSr)\./$1$NOBD./g;
2103 1         26 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]tUas)\./$1$NOBD./g;
2104 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]Uas)\./$1$NOBD./g;
2105 1         30 s/([^A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][Uu]imh)\./$1$NOBD./g;
2106 1         133 s/([?!][]"')}]*[ \t\n-]+[a-z\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])/$NOBD$1/g;
2107 1         48 s/^ //;
2108             }
2109             }
2110              
2111             sub rialacha
2112             {
2113 485     485 0 2060 for ($_[0]) {
2114 485         1558 s/(]*><[A-DF-Z][^>]*>ar<\/[A-DF-Z]> <[A-DF-Z][^>]*>ar<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  2         10  
2115 485         1321 s/(]*><[A-DF-Z][^>]*>ciar\x{f3}g<\/[A-DF-Z]> <[A-DF-Z][^>]*>ciar\x{f3}g<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         4  
2116 485         1388 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*><[A-DF-Z][^>]*>deo<\/[A-DF-Z]> <[A-DF-Z][^>]*>deo<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         5  
2117 485         1251 s/(]*><[A-DF-Z][^>]*>do<\/[A-DF-Z]> <[A-DF-Z][^>]*>do<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  3         17  
2118 485         2635 s/(]*><[A-DF-Z][^>]*>\x{e9}<\/[A-DF-Z]> <[A-DF-Z][^>]*>\x{e9}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         6  
2119 485         1599 s/(]*><[A-DF-Z][^>]*>fada<\/[A-DF-Z]> <[A-DF-Z][^>]*>fada<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         5  
2120 485         1389 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*><[A-DF-Z][^>]*>leor<\/[A-DF-Z]> <[A-DF-Z][^>]*>leor<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  2         7  
2121 485         1186 s/(]*><[A-DF-Z][^>]*>m\x{e9}<\/[A-DF-Z]> <[A-DF-Z][^>]*>m\x{e9}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         5  
2122 485         1614 s/(]*><[A-DF-Z][^>]*>milli\x{fa}n<\/[A-DF-Z]> <[A-DF-Z][^>]*>milli\x{fa}n<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         6  
2123 485         1416 s/(]*><[A-DF-Z][^>]*>Late<\/[A-DF-Z]> <[A-DF-Z][^>]*>Late<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
2124 485         1382 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*><[A-DF-Z][^>]*>m\x{f3}r<\/[A-DF-Z]> <[A-DF-Z][^>]*>m\x{f3}r<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         4  
2125 485         1250 s/(]*><[A-DF-Z][^>]*>sin<\/[A-DF-Z]> <[A-DF-Z][^>]*>sin<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         6  
2126 485         1350 s/(g?Ch?ill<\/N> ]*>Mant\x{e1}in<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2127 485         1013 s/([Aa]r<\/S> ]*>ndoigh<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2128 485         1461 s/(]*>[Mm]ur<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2129 485         1361 s/(]*>[Ee]al\x{fa}<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2130 485         1297 s/(]*>[Mm]arbhadh<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2131 485         1053 s/(]*>n-a<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2132 485         1148 s/(]*>n?[Gg]h?naithe<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2133 485         1274 s/([Nn]a<\/T> ]*>ndathacha<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2134 485         1281 s/(a<\/D> ]*>dh'amharc<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2135 485         1124 s/(a<\/D> ]*>dh'\x{f3}l<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2136 485         1324 s/([Ii]<\/S> ]*>mb\x{e1}rach<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2137 485         965 s/([Ii]<\/S> ]*>mb\x{e1}raigh<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2138 485         1154 s/([Dd]\x{e1}<\/S> ]*>r\x{ed}ribh<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2139 485         1247 s/([Ii]n<\/S> ]*>all\x{f3}d<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2140 485         1391 s/([Ii]<\/S> ]*>n-all\x{f3}d<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2141 485         1312 s/([Ss]an<\/S> ]*>all\x{f3}d<\/X><\/E>)/strip_errors($1);/eg;
  0         0  
2142 485         1346 s/(?])(g?Ch?ill<\/N> Mant\x{e1}in<\/X>)(?![<>])/$1<\/E>/g;
2143 485         917 s/(?])([Aa]r<\/S> ndoigh<\/X>)(?![<>])/$1<\/E>/g;
2144 485         1300 s/(?])(eal\x{fa}<\/X>)(?![<>])/$1<\/E>/g;
2145 485         1094 s/(?])([Aa]g<\/S> [Mm]arbhadh<\/X>)(?![<>])/$1<\/E>/g;
2146 485         1080 s/(?])([Mm]arbhadh<\/X>)(?![<>])/$1<\/E>/g;
2147 485         1243 s/(?])([Mm]ur<\/X> (?:]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2148 485         1500 s/(?])([Mm]ur<\/X>)(?![<>])/$1<\/E>/g;
2149 485         1690 s/(?])([Nn]a<\/T> n?[Gg]h?naithe<\/X>)(?![<>])/$1<\/E>/g;
2150 485         1259 s/(?])([Gg]hnaithe<\/X>)(?![<>])/$1<\/E>/g;
2151 485         1066 s/(?])(n?[Gg]naithe<\/X>)(?![<>])/$1<\/E>/g;
2152 485         1060 s/(?])([Nn]a<\/T> ndathacha<\/X>)(?![<>])/$1<\/E>/g;
2153 485         1397 s/(?])(a<\/D> dh'amharc<\/X>)(?![<>])/$1<\/E>/g;
2154 485         1174 s/(?])(a<\/D> dh'\x{f3}l<\/X>)(?![<>])/$1<\/E>/g;
2155 485         960 s/(?])([Ii]<\/S> mb\x{e1}rach<\/X>)(?![<>])/$1<\/E>/g;
2156 485         966 s/(?])([Ii]<\/S> mb\x{e1}raigh<\/X>)(?![<>])/$1<\/E>/g;
2157 485         973 s/(?])([Dd]\x{e1}<\/S> r\x{ed}ribh<\/X>)(?![<>])/$1<\/E>/g;
2158 485         1178 s/(?])([Ii]n<\/S> all\x{f3}d<\/X>)(?![<>])/$1<\/E>/g;
2159 485         1024 s/(?])([Ii]<\/S> n-all\x{f3}d<\/X>)(?![<>])/$1<\/E>/g;
2160 485         1481 s/(?])([Ss]an<\/S> all\x{f3}d<\/X>)(?![<>])/$1<\/E>/g;
2161 485         1113 s/(?])([Dd][eo]<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2162 485         1384 s/(?])([Tt]r\x{ed}<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2163 485         1143 s/(?])([\x{d3}\x{f3}]<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2164 485         988 s/(?])([Ll]e<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2165 485         1067 s/(?])([Ii]<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2166 485         1287 s/(?])([Ff]\x{e1}<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2167 485         1319 s/(?])([Ff]aoi<\/S> n-a<\/X>)(?![<>])/$1<\/E>/g;
2168 485         1989 s/(?])(n-a<\/X>)(?![<>])/$1<\/E>/g;
2169 485         1199 s/(?])([Nn]\x{ed}<\/V> he<\/X>)(?![<>])/$1<\/E>/g;
2170 485         1572 s/(?])([Nn]\x{ed}<\/V> hi<\/X>)(?![<>])/$1<\/E>/g;
2171 485         1237 s/(?])((?:]*>[Pp]\x{e9}<\/P>) he<\/X>)(?![<>])/$1<\/E>/g;
2172 485         1238 s/(?])((?:]*>[Pp]\x{e9}<\/P>) hi<\/X>)(?![<>])/$1<\/E>/g;
2173 485         1176 s/(?])([Cc]\x{e9}<\/Q> he<\/X>)(?![<>])/$1<\/E>/g;
2174 485         1256 s/(?])([Cc]\x{e9}<\/Q> hi<\/X>)(?![<>])/$1<\/E>/g;
2175 485         1499 s/(?])([^<]+<\/X>)(?![<>])/$1<\/E>/g;
2176 485         1479 s/(?])('\x{e1}<\/Y>)(?![<>])/$1<\/E>/g;
2177 485         970 s/(?])([Aa]'<\/Y> bith<\/N>)(?![<>])/$1<\/E>/g;
2178 485         1067 s/(?])([Aa]'<\/Y> mhaithe<\/N>)(?![<>])/$1<\/E>/g;
2179 485         847 s/(?])([Aa]'<\/Y> chor<\/N>)(?![<>])/$1<\/E>/g;
2180 485         1371 s/(?])([Aa]'<\/Y> (?:]*>(?:[BbCcDdFfGgMmPpTt][^hHbBcCpPsStT']|[^BbCcDdFfGgMmPpTt])[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>))(?![<>])/$1<\/E>/g;
2181 485         1449 s/(?])([Aa]'<\/Y> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>))(?![<>])/$1<\/E>/g;
2182 485         1420 s/(?])([Aa]'<\/Y>)(?![<>])/$1<\/E>/g;
2183 485         979 s/(?])([Aa]b'<\/Y>)(?![<>])/$1<\/E>/g;
2184 485         1134 s/(?])('[Aa]c<\/Y>)(?![<>])/$1<\/E>/g;
2185 485         981 s/(?])('ach<\/Y>)(?![<>])/$1<\/E>/g;
2186 485         966 s/(?])('acha'n<\/Y>)(?![<>])/$1<\/E>/g;
2187 485         919 s/(?])(ao'<\/Y>)(?![<>])/$1<\/E>/g;
2188 485         1129 s/(?])('n?\x{e1}r<\/Y>)(?![<>])/$1<\/E>/g;
2189 485         1417 s/(?])('ar<\/Y> (?:]*>nd\x{f3}ighe?<\/N>))(?![<>])/$1<\/E>/g;
2190 485         887 s/(?])('ar<\/Y> mhaithe<\/N>)(?![<>])/$1<\/E>/g;
2191 485         1051 s/(?])('ar<\/Y> ndiaidh<\/N>)(?![<>])/$1<\/E>/g;
2192 485         1337 s/(?])('ar<\/Y>)(?![<>])/$1<\/E>/g;
2193 485         1253 s/(?])([Aa]rb'<\/Y>)(?![<>])/$1<\/E>/g;
2194 485         1309 s/(?])([Aa]rbh'<\/Y>)(?![<>])/$1<\/E>/g;
2195 485         1148 s/(?])([Aa]rs'<\/Y>)(?![<>])/$1<\/E>/g;
2196 485         1550 s/(?])('athair<\/Y>)(?![<>])/$1<\/E>/g;
2197 485         993 s/(?])('Athair<\/Y>)(?![<>])/$1<\/E>/g;
2198 485         1012 s/(?])('bhaint<\/Y>)(?![<>])/$1<\/E>/g;
2199 485         879 s/(?])('bheith<\/Y>)(?![<>])/$1<\/E>/g;
2200 485         1172 s/(?])('bhfuil<\/Y>)(?![<>])/$1<\/E>/g;
2201 485         1089 s/(?])('bh\x{ed}<\/Y>)(?![<>])/$1<\/E>/g;
2202 485         948 s/(?])('bh\x{ed}odh<\/Y>)(?![<>])/$1<\/E>/g;
2203 485         928 s/(?])('bh\x{ed}onn<\/Y>)(?![<>])/$1<\/E>/g;
2204 485         1167 s/(?])('bhliadhna<\/Y>)(?![<>])/$1<\/E>/g;
2205 485         1166 s/(?])('bhur<\/Y>)(?![<>])/$1<\/E>/g;
2206 485         1010 s/(?])('bhus<\/Y>)(?![<>])/$1<\/E>/g;
2207 485         1009 s/(?])('brath<\/Y>)(?![<>])/$1<\/E>/g;
2208 485         1113 s/(?])('cainnt<\/Y>)(?![<>])/$1<\/E>/g;
2209 485         1590 s/(?])([Cc]\x{e9}rbh'<\/Y>)(?![<>])/$1<\/E>/g;
2210 485         933 s/(?])('chaon<\/Y>)(?![<>])/$1<\/E>/g;
2211 485         1227 s/(?])([Ll]e<\/S> 'ch\x{e9}ile<\/Y>)(?![<>])/$1<\/E>/g;
2212 485         973 s/(?])([\x{d3}\x{f3}]<\/S> 'ch\x{e9}ile<\/Y>)(?![<>])/$1<\/E>/g;
2213 485         1140 s/(?])('ch\x{e9}ile<\/Y>)(?![<>])/$1<\/E>/g;
2214 485         1513 s/(?])('chois<\/Y>)(?![<>])/$1<\/E>/g;
2215 485         1004 s/(?])('chomhair<\/Y>)(?![<>])/$1<\/E>/g;
2216 485         870 s/(?])('chor<\/Y>)(?![<>])/$1<\/E>/g;
2217 485         921 s/(?])('[Cc]huile<\/Y>)(?![<>])/$1<\/E>/g;
2218 485         1135 s/(?])('chur<\/Y>)(?![<>])/$1<\/E>/g;
2219 485         1214 s/(?])([Dd]arab'<\/Y>)(?![<>])/$1<\/E>/g;
2220 485         1022 s/(?])([Dd][\x{e1}a]rbh'<\/Y>)(?![<>])/$1<\/E>/g;
2221 485         1042 s/(?])(dear'<\/Y>)(?![<>])/$1<\/E>/g;
2222 485         1008 s/(?])(ded'<\/Y>)(?![<>])/$1<\/E>/g;
2223 485         1144 s/(?])('deir<\/Y>)(?![<>])/$1<\/E>/g;
2224 485         896 s/(?])(dem'<\/Y>)(?![<>])/$1<\/E>/g;
2225 485         869 s/(?])('dhath<\/Y>)(?![<>])/$1<\/E>/g;
2226 485         1172 s/(?])('Dhia<\/Y>)(?![<>])/$1<\/E>/g;
2227 485         1007 s/(?])('dh\x{ed}oghbh\x{e1}il<\/Y>)(?![<>])/$1<\/E>/g;
2228 485         1259 s/(?])('dir<\/Y>)(?![<>])/$1<\/E>/g;
2229 485         1186 s/(?])('dhith<\/Y>)(?![<>])/$1<\/E>/g;
2230 485         1094 s/(?])('dhuine<\/Y>)(?![<>])/$1<\/E>/g;
2231 485         1027 s/(?])(dtaini'<\/Y>)(?![<>])/$1<\/E>/g;
2232 485         1075 s/(?])(dte[\x{e1}a]rn'<\/Y>)(?![<>])/$1<\/E>/g;
2233 485         1089 s/(?])(nde[\x{e1}a]rn'<\/Y>)(?![<>])/$1<\/E>/g;
2234 485         1073 s/(?])([dt]he[\x{e1}a]rn'<\/Y>)(?![<>])/$1<\/E>/g;
2235 485         925 s/(?])('do<\/Y>)(?![<>])/$1<\/E>/g;
2236 485         1367 s/(?])(dob'<\/Y>)(?![<>])/$1<\/E>/g;
2237 485         1082 s/(?])(dod'<\/Y>)(?![<>])/$1<\/E>/g;
2238 485         1013 s/(?])(dom'<\/Y>)(?![<>])/$1<\/E>/g;
2239 485         932 s/(?])('dul<\/Y>)(?![<>])/$1<\/E>/g;
2240 485         1303 s/(?])('e<\/Y> chlog<\/N>)(?![<>])/$1<\/E>/g;
2241 485         1021 s/(?])('e<\/Y>)(?![<>])/$1<\/E>/g;
2242 485         1067 s/(?])('f[a\x{e1}]gh\x{e1}il<\/Y>)(?![<>])/$1<\/E>/g;
2243 485         1011 s/(?])('fhad<\/Y>)(?![<>])/$1<\/E>/g;
2244 485         1212 s/(?])('fh[a\x{e1}]gh\x{e1}il<\/Y>)(?![<>])/$1<\/E>/g;
2245 485         987 s/(?])(f\x{e1}th'<\/Y>)(?![<>])/$1<\/E>/g;
2246 485         1239 s/(?])([Ff]\x{e9}il'<\/Y>)(?![<>])/$1<\/E>/g;
2247 485         1036 s/(?])([Ff]h\x{e9}il'<\/Y>)(?![<>])/$1<\/E>/g;
2248 485         1492 s/(?])([Ff]ich'<\/Y>)(?![<>])/$1<\/E>/g;
2249 485         949 s/(?])([Ff]hich'<\/Y>)(?![<>])/$1<\/E>/g;
2250 485         1086 s/(?])('fhios<\/Y>)(?![<>])/$1<\/E>/g;
2251 485         904 s/(?])('g<\/Y>)(?![<>])/$1<\/E>/g;
2252 485         1009 s/(?])('gabh[a\x{e1}]il<\/Y>)(?![<>])/$1<\/E>/g;
2253 485         984 s/(?])('gam<\/Y>)(?![<>])/$1<\/E>/g;
2254 485         1445 s/(?])('gh\x{e1}<\/Y>)(?![<>])/$1<\/E>/g;
2255 485         1174 s/(?])('ghabh\x{e1}il<\/Y>)(?![<>])/$1<\/E>/g;
2256 485         1061 s/(?])('gheall<\/Y>)(?![<>])/$1<\/E>/g;
2257 485         1113 s/(?])(gurab'<\/Y>)(?![<>])/$1<\/E>/g;
2258 485         930 s/(?])(gurb'<\/Y>)(?![<>])/$1<\/E>/g;
2259 485         1003 s/(?])(gurbh'<\/Y>)(?![<>])/$1<\/E>/g;
2260 485         1121 s/(?])('[Gg]us<\/Y>)(?![<>])/$1<\/E>/g;
2261 485         1028 s/(?])('[Ii]c<\/Y>)(?![<>])/$1<\/E>/g;
2262 485         1058 s/(?])(id'<\/Y>)(?![<>])/$1<\/E>/g;
2263 485         942 s/(?])(im'<\/Y>)(?![<>])/$1<\/E>/g;
2264 485         978 s/(?])('imirt<\/Y>)(?![<>])/$1<\/E>/g;
2265 485         1017 s/(?])('in<\/Y>)(?![<>])/$1<\/E>/g;
2266 485         890 s/(?])(in'<\/Y>)(?![<>])/$1<\/E>/g;
2267 485         866 s/(?])('innse<\/Y>)(?![<>])/$1<\/E>/g;
2268 485         893 s/(?])(ionns'<\/Y> ar<\/S>)(?![<>])/$1<\/E>/g;
2269 485         1149 s/(?])(ionns'<\/Y> (?:]*>air<\/O>))(?![<>])/$1<\/E>/g;
2270 485         941 s/(?])(ionns'<\/Y> (?:]*>orm<\/O>))(?![<>])/$1<\/E>/g;
2271 485         1011 s/(?])(ionns'<\/Y> (?:]*>ort<\/O>))(?![<>])/$1<\/E>/g;
2272 485         913 s/(?])(ionns'<\/Y> (?:]*>orainn<\/O>))(?![<>])/$1<\/E>/g;
2273 485         907 s/(?])(ionns'<\/Y> (?:]*>oraibh<\/O>))(?![<>])/$1<\/E>/g;
2274 485         1289 s/(?])(ionns'<\/Y> (?:]*>uirthi<\/O>))(?![<>])/$1<\/E>/g;
2275 485         1252 s/(?])(ionns'<\/Y> (?:]*>ortha<\/N>))(?![<>])/$1<\/E>/g;
2276 485         1367 s/(?])(ionns'<\/Y>)(?![<>])/$1<\/E>/g;
2277 485         1672 s/(?])('ithe<\/Y>)(?![<>])/$1<\/E>/g;
2278 485         1082 s/(?])(lach'<\/Y>)(?![<>])/$1<\/E>/g;
2279 485         1100 s/(?])('le<\/Y>)(?![<>])/$1<\/E>/g;
2280 485         999 s/(?])('leanbh<\/Y>)(?![<>])/$1<\/E>/g;
2281 485         919 s/(?])(led'<\/Y>)(?![<>])/$1<\/E>/g;
2282 485         962 s/(?])('l\x{e9}im<\/Y>)(?![<>])/$1<\/E>/g;
2283 485         996 s/(?])(lem'<\/Y>)(?![<>])/$1<\/E>/g;
2284 485         957 s/(?])(len'<\/Y>)(?![<>])/$1<\/E>/g;
2285 485         1173 s/(?])('m<\/Y>)(?![<>])/$1<\/E>/g;
2286 485         969 s/(?])(m'<\/Y>)(?![<>])/$1<\/E>/g;
2287 485         915 s/(?])('mach<\/Y>)(?![<>])/$1<\/E>/g;
2288 485         813 s/(?])('mh\x{e1}in<\/Y>)(?![<>])/$1<\/E>/g;
2289 485         959 s/(?])('mhaith<\/Y>)(?![<>])/$1<\/E>/g;
2290 485         902 s/(?])('mh\x{f3}r\x{e1}n<\/Y>)(?![<>])/$1<\/E>/g;
2291 485         932 s/(?])('mo<\/Y>)(?![<>])/$1<\/E>/g;
2292 485         1318 s/(?])('mur<\/Y>)(?![<>])/$1<\/E>/g;
2293 485         1415 s/(?])([Mm]ur'<\/Y>)(?![<>])/$1<\/E>/g;
2294 485         1018 s/(?])([Mm][au]rab'<\/Y>)(?![<>])/$1<\/E>/g;
2295 485         1221 s/(?])((?:[Ii]|[Ll]e)<\/S> n'<\/Y>)(?![<>])/$1<\/E>/g;
2296 485         1170 s/(?])('n'<\/Y>)(?![<>])/$1<\/E>/g;
2297 485         1229 s/(?])(n'<\/Y>)(?![<>])/$1<\/E>/g;
2298 485         1009 s/(?])('n<\/Y>)(?![<>])/$1<\/E>/g;
2299 485         956 s/(?])('n-a<\/Y>)(?![<>])/$1<\/E>/g;
2300 485         1061 s/(?])('[Nn]a<\/Y>)(?![<>])/$1<\/E>/g;
2301 485         899 s/(?])('n\x{e1}<\/Y>)(?![<>])/$1<\/E>/g;
2302 485         1006 s/(?])('n-\x{e1}r<\/Y>)(?![<>])/$1<\/E>/g;
2303 485         938 s/(?])([Nn]\x{e1}rbh'<\/Y>)(?![<>])/$1<\/E>/g;
2304 485         853 s/(?])('nd\x{e1}n<\/Y>)(?![<>])/$1<\/E>/g;
2305 485         1082 s/(?])('ndiu<\/Y>)(?![<>])/$1<\/E>/g;
2306 485         965 s/(?])('niar<\/Y>)(?![<>])/$1<\/E>/g;
2307 485         1091 s/(?])('nina<\/Y>)(?![<>])/$1<\/E>/g;
2308 485         1152 s/(?])('n\x{ed}os<\/Y>)(?![<>])/$1<\/E>/g;
2309 485         1031 s/(?])('nocht<\/Y>)(?![<>])/$1<\/E>/g;
2310 485         1019 s/(?])('[Nn]oir<\/Y>)(?![<>])/$1<\/E>/g;
2311 485         1134 s/(?])('[Nn]ois<\/Y>)(?![<>])/$1<\/E>/g;
2312 485         934 s/(?])('nonn<\/Y>)(?![<>])/$1<\/E>/g;
2313 485         994 s/(?])('nuas<\/Y>)(?![<>])/$1<\/E>/g;
2314 485         892 s/(?])('nuraidh<\/Y>)(?![<>])/$1<\/E>/g;
2315 485         1020 s/(?])([Nn]\x{ed}orbh'<\/Y>)(?![<>])/$1<\/E>/g;
2316 485         988 s/(?])(oidhch'<\/Y>)(?![<>])/$1<\/E>/g;
2317 485         1056 s/(?])('oiread<\/Y>)(?![<>])/$1<\/E>/g;
2318 485         1651 s/(?])('\x{f3}l<\/Y>)(?![<>])/$1<\/E>/g;
2319 485         1154 s/(?])(\x{f3}m'<\/Y>)(?![<>])/$1<\/E>/g;
2320 485         996 s/(?])('on<\/Y>)(?![<>])/$1<\/E>/g;
2321 485         1016 s/(?])('rabh<\/Y>)(?![<>])/$1<\/E>/g;
2322 485         1130 s/(?])('r\x{e1}dh<\/Y>)(?![<>])/$1<\/E>/g;
2323 485         1117 s/(?])('re<\/Y>)(?![<>])/$1<\/E>/g;
2324 485         1189 s/(?])('r\x{e9}ir<\/Y>)(?![<>])/$1<\/E>/g;
2325 485         1064 s/(?])('riamh<\/Y>)(?![<>])/$1<\/E>/g;
2326 485         960 s/(?])('rith<\/Y>)(?![<>])/$1<\/E>/g;
2327 485         914 s/(?])('r\x{fa}n<\/Y>)(?![<>])/$1<\/E>/g;
2328 485         985 s/(?])('[Ss]<\/Y>)(?![<>])/$1<\/E>/g;
2329 485         1172 s/(?])([Ss]'<\/Y>)(?![<>])/$1<\/E>/g;
2330 485         998 s/(?])([Ss]a'<\/Y>)(?![<>])/$1<\/E>/g;
2331 485         1180 s/(?])('[Ss]a'<\/Y>)(?![<>])/$1<\/E>/g;
2332 485         1042 s/(?])('san<\/Y>)(?![<>])/$1<\/E>/g;
2333 485         992 s/(?])('[Ss]\x{e9}<\/Y>)(?![<>])/$1<\/E>/g;
2334 485         930 s/(?])('[Ss]ea<\/Y>)(?![<>])/$1<\/E>/g;
2335 485         1124 s/(?])('[Ss]eadh<\/Y>)(?![<>])/$1<\/E>/g;
2336 485         1064 s/(?])('[Ss]\x{e9}ard<\/Y>)(?![<>])/$1<\/E>/g;
2337 485         933 s/(?])('sheisear<\/Y>)(?![<>])/$1<\/E>/g;
2338 485         1010 s/(?])('[Ss]\x{ed}<\/Y>)(?![<>])/$1<\/E>/g;
2339 485         1176 s/(?])('[Ss]iad<\/Y>)(?![<>])/$1<\/E>/g;
2340 485         1000 s/(?])('[Ss]iomdha<\/Y>)(?![<>])/$1<\/E>/g;
2341 485         1118 s/(?])('sna<\/Y>)(?![<>])/$1<\/E>/g;
2342 485         1357 s/(?])('steach<\/Y>)(?![<>])/$1<\/E>/g;
2343 485         981 s/(?])('stigh<\/Y>)(?![<>])/$1<\/E>/g;
2344 485         948 s/(?])('t\x{e1}<\/Y>)(?![<>])/$1<\/E>/g;
2345 485         1052 s/(?])('tch\x{ed}m<\/Y>)(?![<>])/$1<\/E>/g;
2346 485         4364 s/(?])('teacht<\/Y>)(?![<>])/$1<\/E>/g;
2347 485         924 s/(?])('thabhairt<\/Y>)(?![<>])/$1<\/E>/g;
2348 485         892 s/(?])(thaini'<\/Y>)(?![<>])/$1<\/E>/g;
2349 485         1190 s/(?])('thaisgidh<\/Y>)(?![<>])/$1<\/E>/g;
2350 485         825 s/(?])('\x{fa}irt<\/Y>)(?![<>])/$1<\/E>/g;
2351 485         826 s/(?])('ul<\/Y>)(?![<>])/$1<\/E>/g;
2352 485         1091 s/(?])('[Uu]n<\/Y>)(?![<>])/$1<\/E>/g;
2353 485         1342 s/(?])([1-9][0-9]*adh<\/A>)(?![<>])/$1<\/E>/g;
2354 485         1011 s/(?])([1-9][0-9]*th<\/A>)(?![<>])/$1<\/E>/g;
2355 485         1471 s/(?])([1-9][0-9]*st<\/A>)(?![<>])/$1<\/E>/g;
2356 485         1203 s/(?])([1-9][0-9]*[rn]d<\/A>)(?![<>])/$1<\/E>/g;
2357 485         1211 s/(?])([Aa]inic<\/F>)(?![<>])/$1<\/E>/g;
2358 485         1144 s/(?])(h?[Aa]ireamh<\/F>)(?![<>])/$1<\/E>/g;
2359 485         1065 s/(?])(h?[Aa]irimh<\/F>)(?![<>])/$1<\/E>/g;
2360 485         1290 s/(?])(h?[Aa]irithe<\/F>)(?![<>])/$1<\/E>/g;
2361 485         1079 s/(?])([Aa]ithnigh<\/F>)(?![<>])/$1<\/E>/g;
2362 485         1234 s/(?])([Aa]g<\/S> [Aa]or<\/F>)(?![<>])/$1<\/E>/g;
2363 485         983 s/(?])([Aa]or<\/F>)(?![<>])/$1<\/E>/g;
2364 485         936 s/(?])([Dd]'ar<\/F> b'ainm<\/N>)(?![<>])/$1<\/E>/g;
2365 485         933 s/(?])([Dd]'ar<\/F>)(?![<>])/$1<\/E>/g;
2366 485         1125 s/(?])([Aa]stai?r<\/F>)(?![<>])/$1<\/E>/g;
2367 485         1063 s/(?])(t-?[Aa]star<\/F>)(?![<>])/$1<\/E>/g;
2368 485         1042 s/(?])([Aa]ta<\/F>)(?![<>])/$1<\/E>/g;
2369 485         906 s/(?])(m?[Bb]h?aise<\/F>)(?![<>])/$1<\/E>/g;
2370 485         1431 s/(?])(m?[Bb]h?as<\/F>)(?![<>])/$1<\/E>/g;
2371 485         1514 s/(?])(m?[Bb]h?asa<\/F>)(?![<>])/$1<\/E>/g;
2372 485         993 s/(?])(m?[Bb]h?eann\x{f3}g<\/F>)(?![<>])/$1<\/E>/g;
2373 485         1142 s/(?])(m?bh?\x{e9}arla<\/F> eagair<\/N>)(?![<>])/$1<\/E>/g;
2374 485         1079 s/(?])([Gg]o<\/C> [Bb]rach<\/F>)(?![<>])/$1<\/E>/g;
2375 485         1221 s/(?])(m?[Bb]h?rughadh<\/F>)(?![<>])/$1<\/E>/g;
2376 485         1255 s/(?])([Bb]h\x{fa}r<\/F>)(?![<>])/$1<\/E>/g;
2377 485         1001 s/(?])([Ii]<\/S> bhfos<\/F>)(?![<>])/$1<\/E>/g;
2378 485         1212 s/(?])(g?[Cc]h?arr<\/N> mogail<\/F>)(?![<>])/$1<\/E>/g;
2379 485         1097 s/(?])(g?[Cc]h?arta<\/F>)(?![<>])/$1<\/E>/g;
2380 485         1211 s/(?])([Cc]heanna<\/F>)(?![<>])/$1<\/E>/g;
2381 485         1136 s/(?])(g[Cc]eanna<\/F>)(?![<>])/$1<\/E>/g;
2382 485         922 s/(?])(g?[Cc]h?eantracha<\/F>)(?![<>])/$1<\/E>/g;
2383 485         1082 s/(?])(g?[Cc]h?ineadh<\/F>)(?![<>])/$1<\/E>/g;
2384 485         1014 s/(?])([Cc]h?odach<\/F>)(?![<>])/$1<\/E>/g;
2385 485         1218 s/(?])(g?[Cc]h?onach<\/F>)(?![<>])/$1<\/E>/g;
2386 485         1041 s/(?])([Cc]huile<\/F>)(?![<>])/$1<\/E>/g;
2387 485         1321 s/(?])([Cc]h?l\x{e1}racha<\/F>)(?![<>])/$1<\/E>/g;
2388 485         923 s/(?])([Cc]l\x{e1}ra\x{ed}<\/F>)(?![<>])/$1<\/E>/g;
2389 485 50       1795 if (s/(?])([Dd]h?\x{e1}lta<\/F>)(?![<>])/$1<\/E>/g) {
2390 0         0 s/(]*>[Dd]\x{e1}lta<\/F><\/E> le ch\x{e9}ile<\/R>)/strip_errors($1);/eg;
  0         0  
2391             }
2392 485         1050 s/(?])([Dd]aoin\x{ed}<\/F>)(?![<>])/$1<\/E>/g;
2393 485         1023 s/(?])([Dd]aoithe<\/F>)(?![<>])/$1<\/E>/g;
2394 485         1154 s/(?])([^<]+<\/S> [Dd]athacha<\/F>)(?![<>])/$1<\/E>/g;
2395 485         1144 s/(?])([Dd]e\x{e1}n<\/F>)(?![<>])/$1<\/E>/g;
2396 485         938 s/(?])(n?[Dd]h?eire<\/F>)(?![<>])/$1<\/E>/g;
2397 485         1200 s/(?])([Dd]h\x{ed}obh<\/F>)(?![<>])/$1<\/E>/g;
2398 485         1158 s/(?])([Dd]\x{ed}ofa<\/F>)(?![<>])/$1<\/E>/g;
2399 485         1125 s/(?])([Ii]<\/S> n[Dd]oimhne<\/F>)(?![<>])/$1<\/E>/g;
2400 485         1199 s/(?])(n?[Dd]h?rama<\/F>)(?![<>])/$1<\/E>/g;
2401 485         1135 s/(?])(n?[Dd]h?reol\x{e1}n<\/F>)(?![<>])/$1<\/E>/g;
2402 485         1350 s/(?])(n?[Dd]h?rud<\/F>)(?![<>])/$1<\/E>/g;
2403 485         1061 s/(?])((?:]*>[Tt]ar<\/V>) [Ee]is<\/F>)(?![<>])/$1<\/E>/g;
2404 485         1268 s/(?])([Ff]h?\x{e1}thach<\/F>)(?![<>])/$1<\/E>/g;
2405 485         1073 s/(?])([Ff]h\x{e9}in<\/F>)(?![<>])/$1<\/E>/g;
2406 485         1647 s/(?])([Ff]h?iach\x{e1}il<\/F>)(?![<>])/$1<\/E>/g;
2407 485         1075 s/(?])([Ff]h?in\x{ed}<\/F>)(?![<>])/$1<\/E>/g;
2408 485         923 s/(?])([Ff]h?irinne<\/F>)(?![<>])/$1<\/E>/g;
2409 485         1037 s/(?])([Aa]r<\/S> [Ff]his<\/F>)(?![<>])/$1<\/E>/g;
2410 485         1071 s/(?])([Ff]h?or\x{e1}in<\/F>)(?![<>])/$1<\/E>/g;
2411 485         973 s/(?])([Ff]h?or\x{e1}n<\/F>)(?![<>])/$1<\/E>/g;
2412 485         1206 s/(?])([Ff]os<\/F>)(?![<>])/$1<\/E>/g;
2413 485         930 s/(?])([Ii]<\/S> bh[Ff]os<\/F>)(?![<>])/$1<\/E>/g;
2414 485         1154 s/(?])([Aa]r<\/S> [Ff]h?uaid<\/F>)(?![<>])/$1<\/E>/g;
2415 485 50       1750 if (s/(?])(n?[Gg]h?airbh\x{ed}n<\/F>)(?![<>])/$1<\/E>/g) {
2416 0         0 s/(]*>n?[Gg]h?airbh\x{ed}n<\/F><\/E> creagach<\/A>)/strip_errors($1);/eg;
  0         0  
2417             }
2418 485         1447 s/(?])(n?[Gg]aoith<\/F>)(?![<>])/$1<\/E>/g;
2419 485         985 s/(?])([Gg]haoith<\/F>)(?![<>])/$1<\/E>/g;
2420 485         1083 s/(?])(n?[Gg]h?oire<\/F>)(?![<>])/$1<\/E>/g;
2421 485         1771 s/(?])([Gg]horta<\/N> [Gg]harta<\/F>)(?![<>])/$1<\/E>/g;
2422 485         1305 s/(?])([Gg]hr\x{e1}dh<\/F>)(?![<>])/$1<\/E>/g;
2423 485         1216 s/(?])(n?[Gg]r\x{e1}dh<\/F>)(?![<>])/$1<\/E>/g;
2424 485         1235 s/(?])(n?[Gg]h?reas<\/F>)(?![<>])/$1<\/E>/g;
2425 485         1515 s/(?])([Hh]ainic<\/F>)(?![<>])/$1<\/E>/g;
2426 485         1128 s/(?])([Ii]n<\/S> imchian<\/F>)(?![<>])/$1<\/E>/g;
2427 485 50       1835 if (s/(?])([Ii]nne<\/F>)(?![<>])/$1<\/E>/g) {
2428 0         0 s/([Ii]n<\/S> ]*>[Ii]nne<\/F><\/E>)/strip_errors($1);/eg;
  0         0  
2429             }
2430 485         1105 s/(?])([Ii]<\/S> [Ll]\x{e9}ic<\/F>)(?![<>])/$1<\/E>/g;
2431 485         864 s/(?])([Ll]\x{e9}ithe<\/F>)(?![<>])/$1<\/E>/g;
2432 485         1316 s/(?])(leitir<\/F>)(?![<>])/$1<\/E>/g;
2433 485         1122 s/(?])([Ll]eitreacha?<\/F>)(?![<>])/$1<\/E>/g;
2434 485         1109 s/(?])(leofa<\/F>)(?![<>])/$1<\/E>/g;
2435 485         1164 s/(?])([Ll]iost<\/F>)(?![<>])/$1<\/E>/g;
2436 485         990 s/(?])([Aa]r<\/S> [Mm]aothas<\/F>)(?![<>])/$1<\/E>/g;
2437 485         855 s/(?])([Mm]h?\x{e9}an<\/F>)(?![<>])/$1<\/E>/g;
2438 485         1121 s/(?])([Mm]huscail<\/F>)(?![<>])/$1<\/E>/g;
2439 485         1120 s/(?])([Mm]uscail<\/F>)(?![<>])/$1<\/E>/g;
2440 485         987 s/(?])([\x{d3}\x{f3}]m<\/F>)(?![<>])/$1<\/E>/g;
2441 485         1315 s/(?])([Pp]hill<\/F>)(?![<>])/$1<\/E>/g;
2442 485         1132 s/(?])(b?[Pp]ill<\/F>)(?![<>])/$1<\/E>/g;
2443 485         975 s/(?])(b?[Pp]h?l\x{e1}igh<\/F>)(?![<>])/$1<\/E>/g;
2444 485         1633 s/(?])(b?[Pp]hunta\x{ed}?<\/F>)(?![<>])/$1<\/E>/g;
2445 485         1150 s/(?])([Rr]abh<\/F>)(?![<>])/$1<\/E>/g;
2446 485         951 s/(?])([Rr]abhthar<\/F>)(?![<>])/$1<\/E>/g;
2447 485         1108 s/(?])([Rr]\x{e1}mhaill\x{ed}<\/F>)(?![<>])/$1<\/E>/g;
2448 485         2263 s/(?])([Rr]\x{e1}mhailligh<\/F>)(?![<>])/$1<\/E>/g;
2449 485 50       1600 if (s/(?])([Rr]ata\x{ed}?<\/F>)(?![<>])/$1<\/E>/g) {
2450 0         0 s/(pro<\/Y> ]*>rata<\/F><\/E>)/strip_errors($1);/eg;
  0         0  
2451             }
2452 485         1254 s/(?])([Rr]iabh<\/F>)(?![<>])/$1<\/E>/g;
2453 485         1050 s/(?])([Rr]uadh<\/F>)(?![<>])/$1<\/E>/g;
2454 485         943 s/(?])([Aa]g<\/S> [Ss]cairtigh<\/F>)(?![<>])/$1<\/E>/g;
2455 485         1332 s/(?])([Ss]maointigh<\/F>)(?![<>])/$1<\/E>/g;
2456 485         1461 s/(?])([Ss]muta<\/F> [Gg]\x{e1}ire<\/N>)(?![<>])/$1<\/E>/g;
2457 485         1070 s/(?])([Ss]h?ol\x{e1}thraigh<\/F>)(?![<>])/$1<\/E>/g;
2458 485         1005 s/(?])([Ss]t\x{e1}id<\/F>)(?![<>])/$1<\/E>/g;
2459 485         963 s/(?])([Tt]hairgeadh<\/F>)(?![<>])/$1<\/E>/g;
2460 485         1374 s/(?])([Tt]h?arrach?<\/F>)(?![<>])/$1<\/E>/g;
2461 485         1416 s/(?])(d?[Tt]h?oiseach<\/F>)(?![<>])/$1<\/E>/g;
2462 485         964 s/(?])([Tt]hoisigh<\/F>)(?![<>])/$1<\/E>/g;
2463 485         1041 s/(?])([Tt]oisigh<\/F>)(?![<>])/$1<\/E>/g;
2464 485         1257 s/(?])(d?[Tt]h?oithe<\/F>)(?![<>])/$1<\/E>/g;
2465 485         906 s/(?])([Tt]uige<\/F>)(?![<>])/$1<\/E>/g;
2466 485         1156 s/(?])([^<]+<\/F>)(?![<>])/$1<\/E>/g;
2467 485         1236 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eara<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2468 485         1212 s/(?])(<[A-DF-Z][^>]*>[Dd]heire<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2469 485         1101 s/(?])(<[A-DF-Z][^>]*>[Dd]eire<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2470 485 50       1796 if (s/(?])(<[A-DF-Z][^>]*>n[Dd]eire<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
2471 0         0 s/((?:[Dd]\x{e1}|[Gg]o|[Ss]ula|[Mm]ura)<\/C> ]*>(?:]*t="foshuit"[^>]*>n[Dd]eire<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2472             }
2473 485 100       1839 if (s/(?])((?:]*t="foshuit"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2474 4         21 s/((?:[Dd]\x{e1}|[Gg]o|[Ss]ula|[Mm]ura)<\/C> ]*>(?:]*t="foshuit"[^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  2         11  
2475 4         13 s/([Nn]\x{e1}r<\/U> ]*>(?:]*t="foshuit"[^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2476             }
2477 485         1188 s/(?])([Nn]a<\/T> (?:n-uasal|nUasal)<\/N>)(?![<>])/$1<\/E>/g;
2478 485 100       3246 if (s/(?])([^< ]+ [^<]+<\/S> [^<]+<\/T> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2479 4         28 s/([Aa]g?<\/S> (?:]*>[^<]+<\/N>) ]*>[^< ]+ [^<]+<\/S> [^<]+<\/T> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  2         10  
2480 4         19 s/(]*>[Gg]o dt\x{ed}<\/S> [^<]+<\/T> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         7  
2481             }
2482 485         2232 s/(?])((?:[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> [^<]+<\/T> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2483 485         1425 s/(?])((?:[^<][^<]*[^m]|[0-9]+)\x{fa}<\/A> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
2484 485         1959 s/(?])([Dd]ara<\/A> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
2485 485 100       1840 if (s/(?])((?:]*t="ord"[^>]*>h[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2486 3         24 s/(<[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> ]*>(?:]*t="ord"[^>]*>h[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  2         11  
2487             }
2488 485 100       2663 if (s/(?])(t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g) {
2489 16         110 s/([Aa]n<\/T> ]*>t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  13         50  
2490 16         49 s/([Cc]\x{e9}n<\/Q> ]*>t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  2         11  
2491             }
2492 485 100       1898 if (s/(?])(t[sS][^<]+<\/N>)(?![<>])/$1<\/E>/g) {
2493 9         55 s/([Aa][Nn]<\/T> ]*>t[sS][^<]+<\/N><\/E>)/strip_errors($1);/eg;
  5         28  
2494 9         34 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>t[sS][^<]+<\/N><\/E>)/strip_errors($1);/eg;
  2         10  
2495 9         32 s/([Cc]\x{e9}n<\/Q> ]*>t[sS][^<]+<\/N><\/E>)/strip_errors($1);/eg;
  1         7  
2496             }
2497 485 100       1839 if (s/(?])(t[sS][^<]+<\/N>)(?![<>])/$1<\/E>/g) {
2498 3         20 s/([Aa]n<\/T> ]*>t[sS][^<]+<\/N><\/E>)/strip_errors($1);/eg;
  3         15  
2499             }
2500 485         1485 s/(?])(fr\x{ed}d<\/N>)(?![<>])/$1<\/E>/g;
2501 485         1368 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[Ss]h\x{e1}ith<\/N>) [Ss]\x{e9}<\/A>)(?![<>])/$1<\/E>/g;
2502 485         2482 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[Ss]h\x{e1}ith<\/N>) (?:]*>(?:[Mm]\x{e9}|[Ss]\x{ed}|[Ss]ibh|[Tt]\x{fa})<\/P>))(?![<>])/$1<\/E>/g;
2503 485 100       2707 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>)(?![<>])/$1<\/E>/g) {
2504 21         160 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) [^< ]+ [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  2         8  
2505 21         192 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  19         89  
2506 21         76 s/(]*>(?:[Bb]heith|[Oo]iread)<\/N> (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A><\/E>)/strip_errors($1);/eg;
  1         37  
2507             }
2508 485 100       2016 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*>[^<]+<\/A>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>)(?![<>])/$1<\/E>/g) {
2509 1         11 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A><\/E>)/strip_errors($1);/eg;
  1         4  
2510 1         4 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*>(?:cuibheasach|eile|iontach|measartha|r\x{e9}as\x{fa}nta)<\/A>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2511 1         4 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*>[^<]+<\/A>) (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2512 1         4 s/(]*>(?:[Bb]heith|[Oo]iread)<\/N> (?:]*>[^<]+<\/A>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2513             }
2514 485 50       1884 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*>[^<]+<\/A>) ach<\/C> (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>)(?![<>])/$1<\/E>/g) {
2515 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*>[^<]+<\/A>) ach<\/C> (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2516 0         0 s/(]*>(?:[Bb]heith|[Oo]iread)<\/N> (?:]*>[^<]+<\/A>) ach<\/C> (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2517             }
2518 485         1145 s/(?])([Aa]g<\/S> [Ff]\x{e1}il<\/N> b\x{e1}is<\/N>)(?![<>])/$1<\/E>/g;
2519 485         1167 s/(?])([Aa]g<\/S> [Gg]abh\x{e1}il<\/N> (?:foinn|ceoil)<\/N>)(?![<>])/$1<\/E>/g;
2520 485         993 s/(?])(Inis<\/N> Gl\x{f3}ire<\/N>)(?![<>])/$1<\/E>/g;
2521 485 100       3199 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:]*gnt="y"[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
2522 10         30 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) D\x{e9}<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2523 10         23 s/(]*>Fh?\x{e9}ile<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2524 10         59 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) [Ff]easa<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2525 10         24 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) [^<]+<\/N><\/E> [^<]+<\/A>)/strip_errors($1);/eg;
  0         0  
2526 10         36 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) [^<]+<\/N><\/E> [^<]+<\/A>)/strip_errors($1);/eg;
  1         7  
2527 10         65 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:[^<]+(?:[\x{f3}\x{fa}]ra|eora|\x{e9}ara|a\x{ed})|cail\x{ed}n|duine|fir|p\x{e1}iste|buachalla)<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2528 10         54 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) (?:baintr\x{ed}|clainne|mn\x{e1}|girs\x{ed})<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2529 10         26 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2530 10         77 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+[DdLlNnSsTt]<\/N>) (?:]*gnt="y"[^>]*>[DdSsTt][^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         18  
2531 10         78 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[Aa]ilp|(?:h?an-|g|n?gh?ann|mh?\x{f3}r|g?ch?aol|leath)?[Cc]h?uid|m?[Bb]h?arra\x{ed}ocht|m?[Bb]h?reis|n?[Dd]h?\x{ed}olaim|n?[Dd]h?\x{ed}th|n?[Dd]h?\x{f3}thain|h?[\x{c9}\x{e9}]agmais|h?[Ee]aspa|(?:bh)?fh?l\x{fa}irse|h?[Ii]omarca|[Ll]eath|[Rr]aidhse|[Rr]oinnt)<\/N>) (?:]*gnt="y"[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  2         11  
2532 10         47 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>bheith<\/N>) (?:]*gnt="y"[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2533 10         27 s/(]*>n?[Dd]h?\x{e9}<\/N> deiridh<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2534 10         37 s/(]*>(?:n?[Gg]h?loine|g?[Cc]h?aor|[Ss]cian|d?[Tt]h?onn)<\/N> (?:]*gnt="y"[^>]*>[Ff][^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2535 10         35 s/(]*>(?:[Ff]h?oireann|[Ff]h?oinse|[Mm]h?eitheal|[Ss]cuaine|[Tt]h?\x{e1}in)<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2536 10         40 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[^<]+[ao]cht|t?[Ss]c\x{e9}im)<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2537 10         57 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[^<]+\x{ed}l|h?[Aa]cmhainn|h?[Aa]irde|h?[Aa]ois|g?[Cc]h?omhairle|h?[\x{c9}\x{e9}]iric|(?:bh)?[Ff]h?(?:airsinge|earg|inne)|n?[Gg]h?\x{e9}arch\x{e9}im|h?[\x{cd}\x{ed}](?:d|sl)e|[Ll]aige|[Mm]h?aise|h?[Oo]iread|h?[\x{d3}\x{f3}]ige|t?[Ss]h?aoirse|d?[Tt]h?itim)<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         8  
2538 10         43 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[^<]+i[lnr]t|[^<]+\x{e1}il|breith|foghlaim|iarraidh|obair|seilg)<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  2         9  
2539 10         29 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) fichead<\/N><\/E>)/strip_errors($1);/eg;
  1         6  
2540 10         33 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^< ]+<\/N>) [Tt]\x{ed}<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2541 10         31 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>h?[Aa]dharc<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2542 10         22 s/(]*>m?[Bb]h?ailc<\/N> fearthainne<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2543 10         24 s/(]*>g?[Cc]h?luas<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2544 10         25 s/(]*>g?[Cc]h?n\x{e1}mh<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2545 10         24 s/(]*>g?[Cc]h?olainn<\/N> [Bb]\x{e1}id<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2546 10         25 s/(]*>g?[Cc]h?os<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2547 10         23 s/(]*>g?[Cc]h?r\x{fa}b<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2548 10         24 s/(]*>n?[Dd]h?eoir<\/N> [Ff]ola<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2549 10         27 s/(]*>n?[Gg]h?ualainn<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2550 10         23 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>h?iall<\/N>) br\x{f3}ige<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2551 10         32 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>h?ionga<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2552 10         23 s/(]*>[Ll]\x{e1}mh<\/N> (?:]*gnt="y"[^>]*>(?:buic\x{e9}id|caid\x{e9}il|b\x{ed}se)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2553 10         25 s/(]*>[Ll]orga<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2554 10         26 s/(]*>[Ll]\x{fa}b<\/N> (?:]*gnt="y"[^>]*>(?:pota|corc\x{e1}in)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2555 10         30 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:mh?\x{e9}ar|h?ord\x{f3}g)<\/N>) (?:]*gnt="y"[^>]*>(?:coise|gliomaigh|port\x{e1}in)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2556 10         22 s/(]*>[Mm]h?uin<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2557 10         24 s/(]*>[Rr]\x{e9}im<\/N> [Bb]ia<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2558 10         22 s/(]*>(?:[Rr]ogha|[Rr]inn)<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2559 10         23 s/(]*>t?[Ss]h?r\x{f3}n<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2560 10         29 s/(]*>t?[Ss]h?\x{fa}il<\/N> (?:]*gnt="y"[^>]*>(?:pr\x{e1}ta|mianaigh|m\x{e9}ire)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2561 10         21 s/(]*>d?[Tt]h?airseach<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2562 10         23 s/(]*>d?[Tt]h?\x{e9}ad<\/N> (?:cl\x{e1}irs\x{ed}|fidle)<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2563 10         21 s/(]*>d?[Tt]h?eanga<\/N> br\x{f3}ige<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2564 10         20 s/(]*>d?[Tt]h?eanga<\/N> cloig<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2565 10         26 s/(]*>d?[Tt]h?\x{f3}in<\/N> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2566 10         19 s/(]*>d?[Tt]h?oirchim<\/N> suain<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2567 10         35 s/([Aa]g<\/S> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[^<]+i[lnr]t|[^<]+\x{e1}il|breith|foghlaim|iarraidh|obair|seilg)<\/N>) (?:]*gnt="y"[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2568             }
2569 485 100       3548 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+[DdLlNnSsTt]<\/N>) (?:]*gnt="y"[^>]*>[DdSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2570 2         14 s/(]*>m?[Bb]h?eirt<\/N> (?:]*gnt="y"[^>]*>[DdSsTt][Hh][^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2571 2         17 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:]*gnt="y"[^>]*>[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  2         11  
2572             }
2573 485         3490 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[Aa]ilp|(?:h?an-|g|n?gh?ann|mh?\x{f3}r|g?ch?aol|leath)?[Cc]h?uid|m?[Bb]h?arra\x{ed}ocht|m?[Bb]h?reis|n?[Dd]h?\x{ed}olaim|n?[Dd]h?\x{ed}th|n?[Dd]h?\x{f3}thain|h?[\x{c9}\x{e9}]agmais|h?[Ee]aspa|(?:bh)?fh?l\x{fa}irse|h?[Ii]omarca|[Ll]eath|[Rr]aidhse|[Rr]oinnt)<\/N>) (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2574 485         3053 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[^<]+\x{ed}l|h?[Aa]cmhainn|h?[Aa]irde|h?[Aa]ois|g?[Cc]h?omhairle|h?[\x{c9}\x{e9}]iric|(?:bh)?[Ff]h?(?:airsinge|earg|inne)|n?[Gg]h?\x{e9}arch\x{e9}im|h?[\x{cd}\x{ed}](?:d|sl)e|[Ll]aige|[Mm]h?aise|h?[Oo]iread|h?[\x{d3}\x{f3}]ige|t?[Ss]h?aoirse|d?[Tt]h?itim)<\/N>) (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2575 485         1340 s/(?])((?:n?[Gg]h?loine|g?[Cc]h?aor|[Ss]cian|d?[Tt]h?onn)<\/N> (?:]*gnt="y"[^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
2576 485 50       1965 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> [^<]+<\/A>)(?![<>])/$1<\/E>/g) {
2577 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> eile<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2578 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2579             }
2580 485 100       2228 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> [^<]+<\/A>)(?![<>])/$1<\/E>/g) {
2581 1         4 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> eile<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2582 1         9 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2583             }
2584 485 50       2466 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+(?:[\x{f3}\x{fa}]ra|eora|\x{e9}ara|a\x{ed})|chail\x{ed}n|dhuine|fhir|ph\x{e1}iste|bhuachalla)<\/N>)(?![<>])/$1<\/E>/g) {
2585 0         0 s/(]*>m?[Bb]h?eirt<\/N> (?:(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+(?:[\x{f3}\x{fa}]ra|eora|\x{e9}ara|a\x{ed})|chail\x{ed}n|dhuine|fhir|ph\x{e1}iste|bhuachalla)<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2586             }
2587 485 50       2619 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:bhaintr\x{ed}|chlainne|mhn\x{e1}|ghirs\x{ed})<\/N>)(?![<>])/$1<\/E>/g) {
2588 0         0 s/(]*>m?[Bb]h?eirt<\/N> (?:bhaintr\x{ed}|chlainne|mhn\x{e1}|ghirs\x{ed})<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2589             }
2590 485 100       2305 if (s/(?])([Aa]g<\/S> (?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[^<]+i[lnr]t|[^<]+\x{e1}il|breith|foghlaim|iarraidh|obair|seilg)<\/N>) (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2591 1         5 s/(]*>[Aa]g<\/S> [Ff]\x{e1}il<\/N> bh\x{e1}is<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2592 1         5 s/(]*>[Aa]g<\/S> [Gg]abh\x{e1}il<\/N> (?:fhoinn|cheoil)<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2593             }
2594 485 100       2077 if (s/(?])((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>)(?![<>])/$1<\/E>/g) {
2595 2         19 s/(]*>(?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>) (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2596             }
2597 485 100       1856 if (s/(?])((?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>)(?![<>])/$1<\/E>/g) {
2598 1         4 s/(]*>g?[Cc]h?aoirigh<\/N> (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2599 1         9 s/(]*>(?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2600             }
2601 485 100       2671 if (s/(?])((?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) (?:]*gnt="y"[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
2602 3         12 s/(]*>(?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) D\x{e9}<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2603 3         24 s/(]*>(?:]*pl="y"[^>]*>[^<]+[DdLlNnSsTt]<\/N>) (?:]*gnt="y"[^>]*>[DdSsTt][^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         7  
2604             }
2605 485         2011 s/(?])((?:]*pl="y"[^>]*>[^<]+[DdLlNnSsTt]<\/N>) (?:]*gnt="y"[^>]*>[DdSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
2606 485         1412 s/(?])([Mm]h\x{e1}rach<\/N>)(?![<>])/$1<\/E>/g;
2607 485         3548 s/(?])(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> (?:]*>[Tt]\x{e1}(?:i[dm]|imid|thar)?<\/V>))(?![<>])/$1<\/E>/g;
2608 485         1579 s/(?])(<[A-DF-Z][^>]*>[Aa]n<\/[A-DF-Z]> (?:]*>[Gg]hn\x{e1}ch<\/A>))(?![<>])/$1<\/E>/g;
2609 485 50       2487 if (s/(?])((?:]*>[0-9]+<\/A>) (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2610 0         0 s/(]*>(?:]*>[0-9]+<\/A>) (?:]*pl="y"[^>]*>(?:m?bh?liana|g?ch?inn|g?ch?loigne|bhfichid|fh?ichid|n-uaire|h?uaire|n-orla\x{ed}|h?orla\x{ed})<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2611             }
2612 485 100       10126 if (s/(?])((?:<[^\/Y][^>]*>(?:n?[Dd]h?eich|[Nn]aoi|(?:h|[mbd]'|n-)?[Oo]cht|[Ss]h?eacht|[789]|10)<\/[^Y]>) (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
2613 5         46 s/(]*>(?:<[^\/Y][^>]*>(?:n?[Dd]h?eich|[Nn]aoi|(?:h|[mbd]'|n-)?[Oo]cht|[Ss]h?eacht|[789]|10)<\/[^Y]>) (?:]*>(?:Ean\x{e1}ir|Feabhra|Aibre\x{e1}n|Bealtaine|I\x{fa}il|Deireadh)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2614             }
2615 485         8682 s/(?])((?:<[^\/Y][^>]*>(?:n?[Dd]h?eich|[Nn]aoi|(?:h|[mbd]'|n-)?[Oo]cht|[Ss]h?eacht|[789]|10)<\/[^Y]>) (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2616 485 100       4002 if (s/(?])(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> (?:[Aa]on|[Oo]cht)<\/A>)(?![<>])/$1<\/E>/g) {
2617 2         15 s/(]*><[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> (?:[Aa]on|[Oo]cht)<\/A><\/E> (?:]*>[^<]+<\/N>))/strip_errors($1);/eg;
  1         6  
2618             }
2619 485         5525 s/(?])(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> (?:<[AN][^>]*>[Bb]'[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g;
2620 485         3420 s/(?])((?:<[DGS][^>]*>[Aa]<\/[DGS]>) (?:]*>[Dd]'[Ff][^<]+<\/N>))(?![<>])/$1<\/E>/g;
2621 485         4429 s/(?])((?:<[DGS][^>]*>[Aa]<\/[DGS]>) (?:]*>[Dd]'[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2622 485         1438 s/(?])(a<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2623 485 100       1854 if (s/(?])([Aa]<\/U> (?:]*(?: p=.y|t=..[^a])[^>]*>[BbCcDdFfGgPpTt][^hHcCpPtT'][^<]*<\/V>))(?![<>])/$1<\/E>/g) {
2624 3         24 s/(]*>[Aa]<\/U> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd](?:eir|\x{e9}ar)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  2         7  
2625 3         21 s/(]*>[Aa]<\/U> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  2         8  
2626             }
2627 485         1650 s/(?])([Aa]<\/H> (?:]*t="caite"[^>]*>(?:rinne[^<]*|chonai?c[^<]*|chua(?:igh|[md]ar|thas)|bh\x{ed}(?:o[md]ar|othas)?)<\/V>))(?![<>])/$1<\/E>/g;
2628 485 100       1598 if (s/(?])([Aa]<\/H> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2629 1         9 s/(]*>[Aa]<\/H> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
2630 1         6 s/(]*>[Aa]<\/H> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2631             }
2632 485         1325 s/(?])([Aa]<\/H> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
2633 485 100       1989 if (s/(?])([Aa]<\/G> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
2634 1         10 s/(]*>[Aa]<\/G> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd](?:eir|\x{e9}ar)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2635 1         9 s/(]*>[Aa]<\/G> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
2636             }
2637 485         1594 s/(?])([Aa]b<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2638 485         1264 s/(?])([Aa]b<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2639 485         1375 s/(?])([Aa]b<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2640 485 100       1516 if (s/(?])([Aa]ch<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2641 2         8 s/(]*>[Aa]ch<\/S> bheith<\/N><\/E>)/strip_errors($1);/eg;
  1         6  
2642             }
2643 485         1387 s/(?])([Aa]ch<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
2644 485         1275 s/(?])([Aa]ch<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
2645 485         1323 s/(?])([Aa]ch<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
2646 485 50       2700 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>h?[Aa]dharc<\/N>) (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2647 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>h?[Aa]dharc<\/N>) (?:]*gnt="y"[^>]*>(?:dh\x{fa}igh|ph\x{fa}dair)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2648             }
2649 485         2312 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>h?[Aa]dharc<\/N>) (?:]*gnt="y"[^>]*>(?:d\x{fa}igh|p\x{fa}dair)<\/N>))(?![<>])/$1<\/E>/g;
2650 485 50       3555 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[mdnh]?'?Aet\x{f3}ip|[mdnh]?'?Afganast\x{e1}in|[mdnh]?'?Afraic|[mdnh]?'?Astr\x{e1}il|[mdnh]?'?\x{c1}ise|[mdnh]?'?Aithin|[mdnh]?'?Airgint\x{ed}n|[mdnh]?'?Araib|[mdnh]?'?Ailg\x{e9}ir)<\/N>))(?![<>])/$1<\/E>/g) {
2651 0         0 s/([Aa]n<\/T> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2652 0         0 s/((?:]*>San<\/N>) ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2653 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2654 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2655             }
2656 485 50       2473 if (s/(?])((?:]*pl="n" gnt="y" gnd="f"[^>]*>(?:[mdnh]?'?Aet\x{f3}ipe|[mdnh]?'?Afganast\x{e1}ine|[mdnh]?'?Afraice|[mdnh]?'?Astr\x{e1}ile|[mdnh]?'?\x{c1}ise|[mdnh]?'?Aithne|[mdnh]?'?Airgint\x{ed}ne|[mdnh]?'?Araibe|[mdnh]?'?Ailg\x{e9}ire)<\/N>))(?![<>])/$1<\/E>/g) {
2657 0         0 s/([Nn]a<\/T> ]*>(?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2658             }
2659 485         1380 s/(?])([Aa][grs]<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
2660 485 100       1943 if (s/(?])([Aa][grs]<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
2661 1         10 s/(]*>[Aa][grs]<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  1         8  
2662             }
2663 485         1604 s/(?])([Aa][grs]<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
2664 485 100       2636 if (s/(?])([Aa][gs]<\/S> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
2665 1         5 s/(]*>[Aa]s<\/S> <[A-DF-Z][^>]*>(?:bheith|th\x{fa})<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
2666 1         25 s/(]*>[Aa][gs]<\/S> <[A-DF-Z][^>]*>(?:bhur|thart)<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
2667             }
2668 485         1411 s/(?])([Aa]g<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
2669 485         1157 s/(?])([Aa]g<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
2670 485         1090 s/(?])([Aa]g<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
2671 485         1226 s/(?])([Aa]g<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
2672 485         1070 s/(?])([Aa]g<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
2673 485         1416 s/(?])([Aa]g<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
2674 485         978 s/(?])([Aa]g<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
2675 485 100       1860 if (s/(?])([Aa]g<\/S> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>) (?:]*>(?:[\x{c9}\x{e9}\x{cd}\x{ed}]|[Ii]ad)<\/P>))(?![<>])/$1<\/E>/g) {
2676 2         10 s/(]*>[Aa]g<\/S> machnamh<\/N> (?:]*>[^<]+<\/P>)<\/E>)/strip_errors($1);/eg;
  1         6  
2677             }
2678 485         1515 s/(?])([Aa]g<\/S> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>) (?:]*>(?:[\x{c9}\x{e9}\x{cd}\x{ed}]|[Ii]ad)<\/P>))(?![<>])/$1<\/E>/g;
2679 485 100       1651 if (s/(?])([Aa]g<\/S> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>) (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
2680 1         3 s/(]*>[Aa]g<\/S> machnamh<\/N> (?:]*>[^<]+<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
2681             }
2682 485         1451 s/(?])([Aa]g<\/S> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>) (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
2683 485 50       1523 if (s/(?])([Aa]g<\/S> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>) (?:]*>[Tt]h\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
2684 0         0 s/(]*>[Aa]g<\/S> machnamh<\/N> (?:]*>[^<]+<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
2685             }
2686 485         1177 s/(?])([Aa]g<\/S> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>) (?:]*>[Tt]h\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
2687 485 50       1798 if (s/(?])([Aa]g<\/S> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>) (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
2688 0         0 s/(]*>[Aa]g<\/S> machnamh<\/N> (?:]*>[^<]+<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
2689             }
2690 485         1403 s/(?])([Aa]g<\/S> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>) (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
2691 485 50       1832 if (s/(?])([Aa]g<\/S> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>) (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
2692 0         0 s/(]*>[Aa]g<\/S> machnamh<\/N> (?:]*>[^<]+<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
2693             }
2694 485         1301 s/(?])([Aa]g<\/S> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>) (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
2695 485         1264 s/(?])([Aa]g<\/S> sna<\/S>)(?![<>])/$1<\/E>/g;
2696 485         1270 s/(?])([Aa]ic\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
2697 485         1259 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> [Aa]it<\/A>)(?![<>])/$1<\/E>/g;
2698 485         977 s/(?])([Ii]n<\/S> [Aa]it<\/A>)(?![<>])/$1<\/E>/g;
2699 485         1212 s/(?])([Aa]n<\/T> [Aa]it<\/A>)(?![<>])/$1<\/E>/g;
2700 485 50       1522 if (s/(?])(h[Aa]it<\/A>)(?![<>])/$1<\/E>/g) {
2701 0         0 s/([Cc]homh<\/R> ]*>hait<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2702 0         0 s/((?:<[CU][^>]*>[Gg]o<\/[CU]>) ]*>hait<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2703             }
2704 485         1522 s/(?])([Aa]n<\/T> Albain<\/N>)(?![<>])/$1<\/E>/g;
2705 485         927 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Albain<\/N>)(?![<>])/$1<\/E>/g;
2706 485         1195 s/(?])([Aa]mhail<\/S> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g;
2707 485         1291 s/(?])([Aa]mhail<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
2708 485         1077 s/(?])([Aa]mhail<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
2709 485         1316 s/(?])([Aa]mhail<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
2710 485         5423 s/(?])([Aa]n<\/Q> [Cc]r\x{e1}dh<\/V>)(?![<>])/$1<\/E>/g;
2711 485 100       2017 if (s/(?])([Aa]n<\/Q> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2712 6         40 s/(]*>[Aa]n<\/Q> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  4         14  
2713 6         27 s/(]*>[Aa]n<\/Q> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
2714             }
2715 485         1394 s/(?])([Aa]n<\/Q> (?:]*>[Tt]h?r\x{e1}igh<\/V>))(?![<>])/$1<\/E>/g;
2716 485 100       1886 if (s/(?])([Aa]n<\/Q> (?:]*>(?:[cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2717 2         12 s/(]*>[Aa]n<\/Q> (?:]*>[Tt]\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2718             }
2719 485         1222 s/(?])([Rr]oimhe<\/R> [Aa]n<\/T> (?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2720 485         2355 s/(?])([Rr]oimhe<\/R> [Aa]n<\/T> (?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
2721 485         1214 s/(?])([Rr]oimhe<\/R> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
2722 485         1189 s/(?])([Rr]oimhe<\/R> [Aa]n<\/T> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
2723 485         1299 s/(?])([Rr]oimhe<\/R> [Aa]n<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2724 485 100       2148 if (s/(?])([Aa]n<\/T> (?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g) {
2725 12         93 s/([^<]+<\/S> ]*>[Aa]n<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N><\/E>)/strip_errors($1);/eg;
  4         21  
2726 12         63 s/([^<]+<\/S> ]*>[Aa]n<\/T> [Mm][^<]+<\/N><\/E>)/strip_errors($1);/eg;
  2         12  
2727             }
2728 485 100       2025 if (s/(?])([Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g) {
2729 7         47 s/([^<]+<\/S> ]*>[Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N><\/E>)/strip_errors($1);/eg;
  5         25  
2730             }
2731 485 50       2090 if (s/(?])([Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2732 0         0 s/([^<]+<\/S> ]*>[Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2733 0         0 s/(]*>[Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A> (?:]*pl="n" gnt="n"[^>]*>haois<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2734             }
2735 485         1214 s/(?])([Aa]n<\/T> mogha<\/N>)(?![<>])/$1<\/E>/g;
2736 485 100       1683 if (s/(?])([Aa]n<\/T> (?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g) {
2737 1         7 s/(]*>[Aa]n<\/T> [Mm]\x{e9}id<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2738             }
2739 485         1243 s/(?])([Aa]n<\/T> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
2740 485         1106 s/(?])([Aa]n<\/T> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
2741 485         1180 s/(?])([Aa]n<\/T> (?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2742 485         1226 s/(?])([Aa]n<\/T> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2743 485         1729 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2744 485 100       2037 if (s/(?])([Aa]n<\/T> (?:tr\x{ed}|ceithre|c\x{fa}ig|s\x{e9}|seacht|ocht|naoi|deich)<\/A>)(?![<>])/$1<\/E>/g) {
2745 2         18 s/(]*>[Aa]n<\/T> [^<]+<\/A><\/E> <[A-DF-Z][^>]*>(?:g?ch?\x{e9}ad|mh?\x{ed}le|mh?illi\x{fa}n)<\/[A-DF-Z]>)/strip_errors($1);/eg;
  1         8  
2746 2         12 s/(]*>[Aa]n<\/T> [^<]+<\/A><\/E> <[A-DF-Z][^>]*>a<\/[A-DF-Z]> <[A-DF-Z][^>]*>chlog<\/[A-DF-Z]>)/strip_errors($1);/eg;
  0         0  
2747             }
2748 485 50       2026 if (s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:th?r\x{ed}|ch?eithre|ch?\x{fa}ig|sh?\x{e9}|sh?eacht|ocht|naoi|dh?eich)<\/A>)(?![<>])/$1<\/E>/g) {
2749 0         0 s/(]*>(?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> [^<]+<\/A><\/E> <[A-DF-Z][^>]*>(?:g?ch?\x{e9}ad|mh?\x{ed}le|mh?illi\x{fa}n)<\/[A-DF-Z]>)/strip_errors($1);/eg;
  0         0  
2750             }
2751 485         1142 s/(?])([Aa]n<\/T> (?:]*>[Dd]h\x{e1}r\x{e9}ag<\/N>))(?![<>])/$1<\/E>/g;
2752 485         1396 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:]*>[Dd]h\x{e1}r\x{e9}ag<\/N>))(?![<>])/$1<\/E>/g;
2753 485         1814 s/(?])([Aa]n<\/T> (?:]*>(?:n[Dd]|d[Tt]|[DdSsTt][Hh])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2754 485         1209 s/(?])([Aa]n<\/T> (?:tAnd\x{f3}ra|tAng\x{f3}la)<\/N>)(?![<>])/$1<\/E>/g;
2755 485         1199 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:And\x{f3}ra|Ang\x{f3}la)<\/N>)(?![<>])/$1<\/E>/g;
2756 485         1266 s/(?])([Aa]nnsan<\/O>)(?![<>])/$1<\/E>/g;
2757 485 100       1744 if (s/(?])([Aa]n<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
2758 1         4 s/(]*>[Aa]n<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2759             }
2760 485         1664 s/(?])([Ii]<\/S> (?:<[OR][^>]*>[Aa]nn<\/[OR]>))(?![<>])/$1<\/E>/g;
2761 485         1292 s/(?])([Aa]on<\/A> [Dd]h\x{e1}<\/A>)(?![<>])/$1<\/E>/g;
2762 485         1636 s/(?])([Aa]on<\/A> (?:]*>[Dd]h\x{e1}r\x{e9}ag<\/N>))(?![<>])/$1<\/E>/g;
2763 485         1830 s/(?])(<[A-DF-Z][^>]*>h?[Aa]on<\/[A-DF-Z]> (?:]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2764 485         1742 s/(?])(<[A-DF-Z][^>]*>h?[Aa]on<\/[A-DF-Z]> (?:]*>[DdSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
2765 485         1132 s/(?])(t-aon<\/N> (?:]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2766 485         1110 s/(?])(t-aon<\/N> (?:]*>[DdSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
2767 485 100       2276 if (s/(?])(<[A-DF-Z][^>]*>[Aa]on<\/[A-DF-Z]> (?:<[^\/N][^>]*>[^<]+<\/[^N]>))(?![<>])/$1<\/E>/g) {
2768 3         11 s/(]*><[A-DF-Z][^>]*>[Aa]on<\/[A-DF-Z]> (?:]*>[Mm]h\x{ed}le<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
2769 3         33 s/(<[A-DF-Z][^>]*>[Mm]ar<\/[A-DF-Z]> ]*><[A-DF-Z][^>]*>[Aa]on<\/[A-DF-Z]> (?:<[DOS][^>]*>[Ll][^<]+<\/[DOS]>)<\/E>)/strip_errors($1);/eg;
  1         5  
2770 3         14 s/(]*><[A-DF-Z][^>]*>[Aa]on<\/[A-DF-Z]> <[A-DF-Z][^>]*>d\x{e1}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         8  
2771 3         16 s/(]*><[A-DF-Z][^>]*>[Aa]on<\/[A-DF-Z]> [Ll]e<\/S><\/E> <[A-DF-Z][^>]*>h[Aa]on<\/[A-DF-Z]>)/strip_errors($1);/eg;
  0         0  
2772             }
2773 485         1693 s/(?])([Aa]r<\/S> (?:]*>d?t\x{fa}i?s<\/N>))(?![<>])/$1<\/E>/g;
2774 485         902 s/(?])([Aa]r<\/S> nd\x{f3}<\/N>)(?![<>])/$1<\/E>/g;
2775 485         1285 s/(?])([Aa]r<\/S> gc\x{fa}il<\/N>)(?![<>])/$1<\/E>/g;
2776 485         1121 s/(?])([Aa]r<\/S> nd\x{f3}ighe<\/N>)(?![<>])/$1<\/E>/g;
2777 485         1442 s/(?])([Aa]r<\/S> <[A-DF-Z][^>]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2778 485         2180 s/(?])((?:<[QU][^>]*>[Aa]r<\/[QU]>) (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
2779 485         1264 s/(?])([Aa]r<\/S> c\x{fa}l<\/N>)(?![<>])/$1<\/E>/g;
2780 485         926 s/(?])([Aa]r<\/S> s\x{fa}il<\/N>)(?![<>])/$1<\/E>/g;
2781 485         986 s/(?])([Aa]r<\/S> (?:]*>faid<\/N>))(?![<>])/$1<\/E>/g;
2782 485 100       2320 if (s/(?])([Aa]r<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
2783 2         18 s/(]*>[Aa]r<\/S> (?:]*>[Gg]ach<\/A>)<\/E>)/strip_errors($1);/eg;
  2         12  
2784             }
2785 485 100       2073 if (s/(?])([Aa]r<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
2786 4         18 s/(]*>[Aa]r<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>)<\/E> (?:]*>[^<]+<\/P>))/strip_errors($1);/eg;
  1         5  
2787             }
2788 485         2714 s/(?])((?:<[QU][^>]*>[Aa]r<\/[QU]>) (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
2789 485         1401 s/(?])([Aa]r<\/S> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2790 485         1274 s/(?])([Aa]r<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2791 485         1322 s/(?])([Aa]r<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2792 485         1232 s/(?])([Aa]r<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2793 485 50       2182 if (s/(?])([Aa]r<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
2794 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2795 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2796             }
2797 485 50       1722 if (s/(?])([Aa]r<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
2798 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2799 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2800             }
2801 485 50       1861 if (s/(?])([Aa]r<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g) {
2802 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2803 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2804 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2805             }
2806 485 50       1718 if (s/(?])([Aa]r<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g) {
2807 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2808 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2809 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2810             }
2811 485 50       1743 if (s/(?])([Aa]r<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
2812 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2813 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2814             }
2815 485 50       2233 if (s/(?])([Aa]r<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
2816 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2817 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2818             }
2819 485 50       2165 if (s/(?])([Aa]r<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g) {
2820 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2821 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2822 0         0 s/(]*>[Aa]r<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2823             }
2824 485         1212 s/(?])([\x{c1}\x{e1}]r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2825 485 100       1691 if (s/(?])([\x{c1}\x{e1}]r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
2826 1         4 s/(]*>[\x{c1}\x{e1}]r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2827             }
2828 485         1149 s/(?])(Arann<\/N>)(?![<>])/$1<\/E>/g;
2829 485         2253 s/(?])([Aa]rb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2830 485         1358 s/(?])([Aa]rbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2831 485         1317 s/(?])([Aa]rbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2832 485         1114 s/(?])([Aa]rbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2833 485         1145 s/(?])((?:<[SD][^>]*>[^<]+<\/[SD]>) (?:]*>h?[Aa]rrachtach<\/A>))(?![<>])/$1<\/E>/g;
2834 485         991 s/(?])([Ss]col<\/N> r\x{e1}mha<\/N>)(?![<>])/$1<\/E>/g;
2835 485 50       3407 if (s/(?])(<[A-DF-Z][^>]*>m[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
2836 0         0 s/(<[A-DF-Z][^>]*>(?:[Dd]h?\x{e1}|[Gg]o|[Nn]ach)<\/[A-DF-Z]> ]*><[A-DF-Z][^>]*>m[Bb]'[^<]+<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
2837             }
2838 485         1331 s/(?])(m?[Bb]a<\/V> (?:<[AN][^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/[AN]>))(?![<>])/$1<\/E>/g;
2839 485         1255 s/(?])(m?[Bb]a<\/V> (?:<[AN][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g;
2840 485         1132 s/(?])(m?[Bb]h?ail<\/N> is<\/V> cr\x{ed}och<\/N>)(?![<>])/$1<\/E>/g;
2841 485         994 s/(?])([Aa]n<\/T> (?:Bheinin|Bhr\x{fa}in\x{e9})<\/N>)(?![<>])/$1<\/E>/g;
2842 485         1290 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Bheinin|Bhr\x{fa}in\x{e9})<\/N>)(?![<>])/$1<\/E>/g;
2843 485         1100 s/(?])([Aa]n<\/T> (?:Barbad\x{f3}s|Buirc\x{ed}ne)<\/N>)(?![<>])/$1<\/E>/g;
2844 485         976 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Bharbad\x{f3}s|Bhuirc\x{ed}ne)<\/N>)(?![<>])/$1<\/E>/g;
2845 485 50       2301 if (s/(?])((?:m?Bh?reatain|m?Bh?ruis\x{e9}il|m?Bh?eilg|m?Bh?abl\x{f3}in|m?Bh?riot\x{e1}in|m?Bh?rasa\x{ed}l)<\/N>)(?![<>])/$1<\/E>/g) {
2846 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2847 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2848 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2849             }
2850 485 50       1868 if (s/(?])((?:m?Bh?reataine|m?Bh?ruis\x{e9}ile|m?Bh?eilge|m?Bh?abl\x{f3}ine|m?Bh?riot\x{e1}ine|m?Bh?rasa\x{ed}le)<\/N>)(?![<>])/$1<\/E>/g) {
2851 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2852             }
2853 485         1220 s/(?])(m?[Bb]h?ailc<\/N> fhearthainne<\/N>)(?![<>])/$1<\/E>/g;
2854 485         1401 s/(?])([Nn]uair<\/C> bh\x{e9}as<\/N>)(?![<>])/$1<\/E>/g;
2855 485         1297 s/(?])(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> bh\x{e9}as<\/N>)(?![<>])/$1<\/E>/g;
2856 485         1180 s/(?])(is<\/V> bh\x{e9}as<\/N>)(?![<>])/$1<\/E>/g;
2857 485         1144 s/(?])(bh\x{e9}as<\/N> (?:]*>[^<]+<\/P>))(?![<>])/$1<\/E>/g;
2858 485         1043 s/(?])(b\x{e9}iceach<\/A>)(?![<>])/$1<\/E>/g;
2859 485 100       4497 if (s/(?])([Bb]einn<\/V>)(?![<>])/$1<\/E>/g) {
2860 1         13 s/(<[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> ]*>[Bb]einn<\/V><\/E>)/strip_errors($1);/eg;
  0         0  
2861             }
2862 485         1886 s/(?])([Bb]eirt<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2863 485 100       1844 if (s/(?])(m?[Bb]h?eirt<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2864 1         7 s/(]*>m?[Bb]h?eirt<\/N> bhan<\/N><\/E>)/strip_errors($1);/eg;
  1         7  
2865             }
2866 485         1068 s/(?])(m?[Bb]h?eirt<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
2867 485         1092 s/(?])([Bb]heir<\/V>)(?![<>])/$1<\/E>/g;
2868 485 100       2569 if (s/(?])((?:]*>[Bb]h?eirte?<\/N>) (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
2869 2         19 s/(]*>(?:]*>[Bb]h?eirte?<\/N>) (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  1         6  
2870             }
2871 485         1309 s/(?])(mbeithe<\/N>)(?![<>])/$1<\/E>/g;
2872 485         1064 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> br\x{e1}th<\/N>)(?![<>])/$1<\/E>/g;
2873 485         1126 s/(?])([Dd]e<\/S> (?:]*>[Bb]huadh<\/V>))(?![<>])/$1<\/E>/g;
2874 485         1083 s/(?])(<[A-DF-Z][^>]*>[Dd]\x{e1}<\/[A-DF-Z]> (?:]*>[Bb]huadh<\/V>))(?![<>])/$1<\/E>/g;
2875 485         1336 s/(?])(m?[Bb]h?un<\/N> os cionn<\/S>)(?![<>])/$1<\/E>/g;
2876 485         1143 s/(?])(m?[Bb]h?un<\/N> os<\/S> toll<\/N>)(?![<>])/$1<\/E>/g;
2877 485         1059 s/(?])([Bb]hur<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2878 485 100       1982 if (s/(?])([Bb]hur<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
2879 1         4 s/(]*>[Bb]hur<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
2880             }
2881 485         1102 s/(?])([Nn]a<\/T> [Bb]ochta<\/A>)(?![<>])/$1<\/E>/g;
2882 485         994 s/(?])(bu\x{ed}och<\/A> do<\/S>)(?![<>])/$1<\/E>/g;
2883 485         1044 s/(?])(bu\x{ed}och<\/A> don<\/S>)(?![<>])/$1<\/E>/g;
2884 485         1279 s/(?])(bu\x{ed}och<\/A> (?:]*>dom<\/O>))(?![<>])/$1<\/E>/g;
2885 485         1221 s/(?])(bu\x{ed}och<\/A> (?:]*>duit<\/O>))(?![<>])/$1<\/E>/g;
2886 485         970 s/(?])(bu\x{ed}och<\/A> (?:]*>d\x{f3}<\/O>))(?![<>])/$1<\/E>/g;
2887 485         1052 s/(?])(bu\x{ed}och<\/A> (?:]*>d\x{fa}inn<\/O>))(?![<>])/$1<\/E>/g;
2888 485         1093 s/(?])(bu\x{ed}och<\/A> (?:]*>daoibh<\/O>))(?![<>])/$1<\/E>/g;
2889 485         1076 s/(?])(bu\x{ed}och<\/A> (?:]*>d\x{f3}ibh<\/O>))(?![<>])/$1<\/E>/g;
2890 485 100       1911 if (s/(?])([Cc][^<]+<\/Q> (?:]* p="."[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2891 12         92 s/(]*>[Cc][^<]+<\/Q> (?:]* p="."[^>]*>at\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  2         9  
2892 12         68 s/(]*>[Cc]\x{e1}r?<\/Q> (?:]* p="."[^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  9         38  
2893             }
2894 485         1351 s/(?])([Cc]\x{e9}<\/Q> (?:]*>[Mm]h?\x{e9}id<\/N>))(?![<>])/$1<\/E>/g;
2895 485         1275 s/(?])([Cc]\x{e1}<\/V> (?:]*>[Mm]h?\x{e9}id<\/N>))(?![<>])/$1<\/E>/g;
2896 485         1113 s/(?])([Cc][\x{e1}\x{e9}] [Mm]h\x{e9}ad<\/Q> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2897 485         1470 s/(?])([Cc]\x{e1}<\/V> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
2898 485 100       1902 if (s/(?])([Cc]\x{e1}<\/V> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2899 2         13 s/(]*>[Cc]\x{e1}<\/V> (?:]*>(?:mhinice|fhad)<\/N>)<\/E>)/strip_errors($1);/eg;
  1         8  
2900             }
2901 485         1173 s/(?])([Cc]\x{e1}<\/V> minice<\/N>)(?![<>])/$1<\/E>/g;
2902 485         935 s/(?])([Cc]\x{e1}<\/V> fad<\/N>)(?![<>])/$1<\/E>/g;
2903 485 100       1720 if (s/(?])([Cc]\x{e1}<\/Q> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2904 2         14 s/(]*>[Cc]\x{e1}<\/Q> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
2905 2         9 s/(]*>[Cc]\x{e1}<\/Q> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2906             }
2907 485         1570 s/(?])([Cc]\x{e1}<\/V> [Bb]ith<\/N>)(?![<>])/$1<\/E>/g;
2908 485         1065 s/(?])([Cc]\x{e1}<\/Q> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
2909 485 50       1698 if (s/(?])([Cc]ad<\/Q> (?:]*>\x{e9}<\/P>) (?:]* p="."[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
2910 0         0 s/(]*>[Cc]ad<\/Q> (?:]*>\x{e9}<\/P>) (?:]* p="."[^>]*>at\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
2911             }
2912 485         1042 s/(?])([Aa]n<\/T> (?:Camar\x{fa}n|Catar|Ceanada|Cireabait\x{ed}|Cu\x{e1}it|C\x{fa}ba)<\/N>)(?![<>])/$1<\/E>/g;
2913 485         1167 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Chamar\x{fa}n|Chatar|Cheanada|Chireabait\x{ed}|Chu\x{e1}it|Ch\x{fa}ba)<\/N>)(?![<>])/$1<\/E>/g;
2914 485         1122 s/(?])(g?[Cc]aoirigh<\/N> (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)(?![<>])/$1<\/E>/g;
2915 485         1233 s/(?])([Cc]haoirigh<\/N> (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)(?![<>])/$1<\/E>/g;
2916 485         1520 s/(?])([Cc]\x{e1}r<\/Q> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
2917 485         1243 s/(?])([Cc]\x{e1}r<\/Q> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
2918 485         1024 s/(?])([Cc]\x{e1}r<\/Q> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
2919 485         1502 s/(?])([Cc]\x{e1}r<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2920 485         1183 s/(?])([Cc]\x{e1}r<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2921 485         1612 s/(?])([Cc]\x{e1}rb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2922 485         1078 s/(?])([Cc]\x{e1}rbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2923 485         1451 s/(?])([Cc]\x{e1}rbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2924 485         1098 s/(?])([Cc]\x{e1}rbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2925 485         1079 s/(?])(g?[Cc]h?arn\x{e1}n<\/N> caisil<\/N>)(?![<>])/$1<\/E>/g;
2926 485         1891 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> <[A-DF-Z][^>]*>[Cc]has<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2927 485         1418 s/(?])([Ii]<\/S> <[A-DF-Z][^>]*>g[Cc]as<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2928 485 50       3237 if (s/(?])((?:g?Ch?abh\x{e1}n|g?Ch?atal\x{f3}in|g?Ch?ipir|g?Ch?\x{f3}ir\x{e9}|g?Ch?ol\x{f3}im)<\/N>)(?![<>])/$1<\/E>/g) {
2929 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2930 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2931 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
2932             }
2933 485 50       1896 if (s/(?])((?:g?Ch?atal\x{f3}ine|g?Ch?ipire|g?Ch?\x{f3}ir\x{e9}|g?Ch?ol\x{f3}ime)<\/N>)(?![<>])/$1<\/E>/g) {
2934 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2935             }
2936 485 50       2057 if (s/(?])(g?Ch?abh\x{e1}in<\/N>)(?![<>])/$1<\/E>/g) {
2937 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2938             }
2939 485         1164 s/(?])([Cc]\x{e9}<\/Q> [Aa]r bith<\/R>)(?![<>])/$1<\/E>/g;
2940 485         1609 s/(?])([Cc]\x{e9}<\/Q> bith<\/N>)(?![<>])/$1<\/E>/g;
2941 485         931 s/(?])([Cc]\x{e9}<\/Q> rud<\/N>)(?![<>])/$1<\/E>/g;
2942 485 100       1632 if (s/(?])([Cc]\x{e9}<\/Q> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/P>))(?![<>])/$1<\/E>/g) {
2943 2         14 s/(]*>[Cc]\x{e9}<\/Q> (?:]*>ea<\/P>)<\/E>)/strip_errors($1);/eg;
  1         7  
2944             }
2945 485         1111 s/(?])([Cc]\x{e9}<\/Q> an<\/T>)(?![<>])/$1<\/E>/g;
2946 485         1123 s/(?])([Aa]n<\/T> [Cc]head<\/N> (?:]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
2947 485         1269 s/(?])([^<]+<\/T> c\x{e9}ad<\/A>)(?![<>])/$1<\/E>/g;
2948 485         1061 s/(?])([Ss]na<\/S> c\x{e9}ad<\/A>)(?![<>])/$1<\/E>/g;
2949 485         1180 s/(?])([Aa]<\/D> c\x{e9}ad<\/A> (?:]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
2950 485         1058 s/(?])([Aa]<\/D> c\x{e9}ad<\/A> (?:]*>[DdSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
2951 485         1654 s/(?])([Oo]s<\/S> [Cc]eann<\/N>)(?![<>])/$1<\/E>/g;
2952 485 50       3307 if (s/(?])([Cc]eanna<\/N>)(?![<>])/$1<\/E>/g) {
2953 0         0 s/((?:<[STV][^>]*>[^<]+<\/[STV]>) ]*>[Cc]eanna<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2954             }
2955 485         1384 s/(?])([Gg]ach<\/A> [Cc]eard<\/N>)(?![<>])/$1<\/E>/g;
2956 485         1343 s/(?])([Cc]eard<\/N> faoi<\/S>)(?![<>])/$1<\/E>/g;
2957 485         1502 s/(?])([Cc]eard<\/N> [^<]+<\/V>)(?![<>])/$1<\/E>/g;
2958 485         1118 s/(?])([Cc]eard<\/N> <[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> (?:]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
2959 485         1089 s/(?])([Ii] ngach<\/S> cearna<\/N>)(?![<>])/$1<\/E>/g;
2960 485         883 s/(?])([Gg]ach<\/A> cearna<\/N>)(?![<>])/$1<\/E>/g;
2961 485         1057 s/(?])(g?[Cc]h?eithre<\/A> [Cc]h?earna<\/N>)(?![<>])/$1<\/E>/g;
2962 485 50       1588 if (s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?eathair<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
2963 0         0 s/([Nn]\x{f3}<\/C> ]*><[A-DF-Z][^>]*>[Cc]eathair<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
2964 0         0 s/(]*><[A-DF-Z][^>]*>[Cc]eathair<\/[A-DF-Z]><\/E> [Nn]\x{f3}<\/C>)/strip_errors($1);/eg;
  0         0  
2965             }
2966 485 50       1763 if (s/(?])(g?[Cc]h?eathrar<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2967 0         0 s/(]*>g?[Cc]h?eathrar<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
2968             }
2969 485         1060 s/(?])(g?[Cc]h?eathrar<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
2970 485         1278 s/(?])(g?[Cc]h?eithre<\/A> <[A-DF-Z][^>]*>uaire?<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
2971 485         1309 s/(?])(g?[Cc]h?eithre<\/A> (?:]*>airde<\/N>))(?![<>])/$1<\/E>/g;
2972 485 100       1749 if (s/(?])(g?[Cc]h?eithre<\/A> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
2973 2         14 s/([Nn]a<\/T> ]*>g?[Cc]h?eithre<\/A> (?:]*>[Dd]\x{fa}ile<\/N>)<\/E>)/strip_errors($1);/eg;
  1         10  
2974 2         11 s/(]*>g?[Cc]h?eithre<\/A> (?:]*>(?:[Bb]liana|[Cc]inn|[Cc]loigne|[Cc]uarta|[Ff]ichid|[Pp]ingine|[Ss]eachtaine|[Tt]roithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
2975             }
2976 485         1260 s/(?])(g?[Cc]eithre<\/A> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
2977 485         1761 s/(?])([Cc]heithre<\/A> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
2978 485 50       1873 if (s/(?])(g?[Cc]h?eithre<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
2979 0         0 s/(]*>g?[Cc]h?eithre<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
2980             }
2981 485 50       1803 if (s/(?])(g?[Cc]h?eithre<\/A> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
2982 0         0 s/(]*>g?[Cc]h?eithre<\/A> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
2983             }
2984 485         1250 s/(?])(g?[Cc]h?eithre<\/A> [Bb]hliain<\/N>)(?![<>])/$1<\/E>/g;
2985 485         1126 s/(?])(g?[Cc]h?eithre<\/A> [Cc]heann<\/N>)(?![<>])/$1<\/E>/g;
2986 485         1197 s/(?])(g?[Cc]h?eithre<\/A> [Cc]hloigeann<\/N>)(?![<>])/$1<\/E>/g;
2987 485         1151 s/(?])(g?[Cc]h?eithre<\/A> [Cc]huairt<\/N>)(?![<>])/$1<\/E>/g;
2988 485         1393 s/(?])(g?[Cc]h?eithre<\/A> [Ff]hiche<\/N>)(?![<>])/$1<\/E>/g;
2989 485         1209 s/(?])(g?[Cc]h?eithre<\/A> [Oo]rlach<\/N>)(?![<>])/$1<\/E>/g;
2990 485         1105 s/(?])(g?[Cc]h?eithre<\/A> [Pp]hingin<\/N>)(?![<>])/$1<\/E>/g;
2991 485         1077 s/(?])(g?[Cc]h?eithre<\/A> [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
2992 485         1248 s/(?])(g?[Cc]h?eithre<\/A> [Ss]heachtain<\/N>)(?![<>])/$1<\/E>/g;
2993 485         1096 s/(?])(g?[Cc]h?eithre<\/A> [Tt]hroigh<\/N>)(?![<>])/$1<\/E>/g;
2994 485         1049 s/(?])(g?[Cc]h?eithre<\/A> [Uu]bh<\/N>)(?![<>])/$1<\/E>/g;
2995 485 100       2278 if (s/(?])(g?[Cc]h?eithre<\/A> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
2996 1         9 s/(]*>g?[Cc]h?eithre<\/A> (?:]*pl="y"[^>]*>(?:bliana|cinn|cloigne|fichid|horla\x{ed}|huaire|troithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  1         5  
2997             }
2998 485         4590 s/(?])([Cc]\x{e9}n<\/Q> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
2999 485         1379 s/(?])([Cc]\x{e9}n<\/Q> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
3000 485         1247 s/(?])([Cc]\x{e9}r<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3001 485         1230 s/(?])([Cc]\x{e9}r<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3002 485         1358 s/(?])([Cc]\x{e9}rb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3003 485         1065 s/(?])([Cc]\x{e9}rbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3004 485         1279 s/(?])([Cc]\x{e9}rbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3005 485 50       1838 if (s/(?])([Cc]\x{e9}rbh<\/V>)(?![<>])/$1<\/E>/g) {
3006 0         0 s/(]*>[Cc]\x{e9}rbh<\/V><\/E> (?:]*>(?:[\x{e9}\x{ed}]|iad|iadsan|eisean|ise)<\/P>))/strip_errors($1);/eg;
  0         0  
3007             }
3008 485 100       1687 if (s/(?])([Cc]ha<\/U> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3009 1         11 s/(]*>[Cc]ha<\/U> (?:]*t="caite"[^>]*>(?:raibh|dt\x{e1}inig|dtug|ndearnadh|gcuala|bhfuair)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
3010             }
3011 485         1896 s/(?])([Cc]ha<\/U> <[A-DF-Z][^>]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3012 485         1179 s/(?])([Cc]ha<\/U> <[A-DF-Z][^>]*>[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3013 485         1689 s/(?])([Cc]ha<\/U> <[A-DF-Z][^>]*>(?:[tT]|[Dd][^Tt'])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3014 485         1267 s/(?])([Cc]ha<\/U> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3015 485         1405 s/(?])([Cc]har<\/U> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3016 485         1278 s/(?])([Cc]har<\/U> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3017 485         1214 s/(?])([Cc]har<\/U> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3018 485         1268 s/(?])([Cc]ha<\/U> <[A-DF-Z][^>]*>ar<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3019 485         1078 s/(?])([Cc]ha<\/U> <[A-DF-Z][^>]*>arbh<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3020 485         1469 s/(?])([Cc]h\x{e9}ad<\/A> (?:]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3021 485         1425 s/(?])([Cc]h\x{e9}ad<\/A> (?:]*>[DdSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
3022 485         1203 s/(?])([Cc]homh<\/R> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/A>)(?![<>])/$1<\/E>/g;
3023 485         1565 s/(?])([Cc]huig<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3024 485 100       1739 if (s/(?])([Cc]huig<\/S> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
3025 1         9 s/(]*>[Cc]huig<\/S> <[A-DF-Z][^>]*>(?:bhur|thart)<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
3026             }
3027 485 50       2220 if (s/(?])([Cc]huig<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3028 0         0 s/(]*>[Cc]huig<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3029             }
3030 485         1318 s/(?])([Cc]huig<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
3031 485 100       2166 if (s/(?])(<[A-DF-Z][^>]*>[Cc]hun<\/[A-DF-Z]> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
3032 2         15 s/(]*><[A-DF-Z][^>]*>[Cc]hun<\/[A-DF-Z]> bheith<\/N><\/E>)/strip_errors($1);/eg;
  1         10  
3033 2         48 s/(]*><[A-DF-Z][^>]*>[Cc]hun<\/[A-DF-Z]> <[A-DF-Z][^>]*>(?:bhur|th\x{fa})<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
3034             }
3035 485         1513 s/(?])([Cc]hun<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3036 485         1029 s/(?])([Cc]\x{ed}be<\/N> \x{e1}it<\/N>)(?![<>])/$1<\/E>/g;
3037 485         1342 s/(?])([Cc]\x{ed}be<\/N> (?:duine|rud|sc\x{e9}al)<\/N>)(?![<>])/$1<\/E>/g;
3038 485         1245 s/(?])([Cc]\x{ed}be<\/N> [Cc]\x{e9}n<\/Q>)(?![<>])/$1<\/E>/g;
3039 485         1084 s/(?])(i<\/S> gcionn<\/N> <[A-DF-Z][^>]*>go<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3040 485         1073 s/(?])(i<\/S> gcionn<\/N> (?:]*>(?:or[mt](?:sa)?|uirthi(?:se)?|air(?:sean)?|orainne?|oraibh(?:se)?|orthu(?:san)?)<\/O>))(?![<>])/$1<\/E>/g;
3041 485         1115 s/(?])(i<\/S> gcionn<\/N> ar<\/S>)(?![<>])/$1<\/E>/g;
3042 485         1025 s/(?])(i<\/S> gcionn<\/N>)(?![<>])/$1<\/E>/g;
3043 485         1293 s/(?])([Ii]<\/S> (?:]*>g[Cc]l\x{f3}dh<\/V>))(?![<>])/$1<\/E>/g;
3044 485         6087 s/(?])(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> <[A-DF-Z][^>]*>g?[Cc]loi?g<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3045 485         1039 s/(?])([Aa]g<\/S> clos<\/N>)(?![<>])/$1<\/E>/g;
3046 485         1434 s/(?])([Ll]e<\/S> clos<\/N>)(?![<>])/$1<\/E>/g;
3047 485 50       1543 if (s/(?])(g?[Cc]h?luas<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3048 0         0 s/(]*>g?[Cc]h?luas<\/N> mhara<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3049             }
3050 485         1352 s/(?])(g?[Cc]h?luas<\/N> mara<\/N>)(?![<>])/$1<\/E>/g;
3051 485 50       1716 if (s/(?])(g?[Cc]h?n\x{e1}mh<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3052 0         0 s/(]*>g?[Cc]h?n\x{e1}mh<\/N> ghaoil<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3053             }
3054 485         939 s/(?])(g?[Cc]h?n\x{e1}mh<\/N> gaoil<\/N>)(?![<>])/$1<\/E>/g;
3055 485         1247 s/(?])([Cc]odaithe<\/N>)(?![<>])/$1<\/E>/g;
3056 485         1434 s/(?])(g?[Cc]h?olainn<\/N> bh\x{e1}id<\/N>)(?![<>])/$1<\/E>/g;
3057 485         1070 s/(?])([^<]+<\/V> [Cc]hoir<\/N>)(?![<>])/$1<\/E>/g;
3058 485         1421 s/(?])([Ii] g[Cc]\x{f3}ir<\/S> (?:]*>[Ll]inn<\/N>))(?![<>])/$1<\/E>/g;
3059 485         1123 s/(?])([Ii] g[Cc]\x{f3}ir<\/S> (?:[Ll]e|[Ll]eis)<\/S>)(?![<>])/$1<\/E>/g;
3060 485         1172 s/(?])([Ii] g[Cc]\x{f3}ir<\/S> (?:[Ll]ena|[Ll]en\x{e1}r)<\/D>)(?![<>])/$1<\/E>/g;
3061 485         965 s/(?])([Ii] g[Cc]\x{f3}ir<\/S> (?:]*>[Ll](?:iom|eat|eis|\x{e9}i|inn|ibh|eo)<\/O>))(?![<>])/$1<\/E>/g;
3062 485         1228 s/(?])(g?[Cc]h?olann<\/V>)(?![<>])/$1<\/E>/g;
3063 485 50       1641 if (s/(?])([Ii]<\/S> g[Cc]omhar<\/N> (?:<[^\/DOS][^>]*>[^<]+<\/[^DOS]>))(?![<>])/$1<\/E>/g) {
3064 0         0 s/(]*>[Ii]<\/S> g[Cc]omhar<\/N> (?:]*>[Ll]inn<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3065 0         0 s/(]*>[Ii]<\/S> g[Cc]omhar<\/N> [Ll]e [Cc]h\x{e9}ile<\/R><\/E>)/strip_errors($1);/eg;
  0         0  
3066             }
3067 485 50       1834 if (s/(?])([Ii]<\/S> g[Cc]omhar<\/N> [^<]+<\/S>)(?![<>])/$1<\/E>/g) {
3068 0         0 s/(]*>[Ii]<\/S> g[Cc]omhar<\/N> (?:[Ll]e|[Ll]eis)<\/S><\/E>)/strip_errors($1);/eg;
  0         0  
3069             }
3070 485 50       1463 if (s/(?])([Ii]<\/S> g[Cc]omhar<\/N> [^<]+<\/D>)(?![<>])/$1<\/E>/g) {
3071 0         0 s/(]*>[Ii]<\/S> g[Cc]omhar<\/N> (?:[Ll]ena|[Ll]en\x{e1}r)<\/D><\/E>)/strip_errors($1);/eg;
  0         0  
3072             }
3073 485 50       3100 if (s/(?])([Ii]<\/S> g[Cc]omhar<\/N> (?:]*>[^<]+<\/O>))(?![<>])/$1<\/E>/g) {
3074 0         0 s/(]*>[Ii]<\/S> g[Cc]omhar<\/N> (?:]*>[Ll](?:iom|eat|eis|\x{e9}i|inn|ibh|eo)<\/O>)<\/E>)/strip_errors($1);/eg;
  0         0  
3075             }
3076 485         1100 s/(?])(g?Ch?ontae<\/N> Mh?\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
3077 485         1163 s/(?])(g?Ch?ontae<\/N> (?:Ch?l\x{e1}ir|Dh?\x{fa}in)<\/N>)(?![<>])/$1<\/E>/g;
3078 485 50       1825 if (s/(?])(g?Ch?ontae<\/N> [^<]+<\/T> (?:]*>[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g) {
3079 0         0 s/(]*>g?Ch?ontae<\/N> [^<]+<\/T> (?:]*>(?:Gaillimhe|hIarmh\x{ed}|M\x{ed}|Chabh\x{e1}in|Chl\x{e1}ir|D\x{fa}in|Longfoirt)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3080             }
3081 485         1518 s/(?])(g?Ch?ontae<\/N> (?:]*>(?:[BCDFGMPT][^Hh']|S[lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bhF)[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3082 485         1148 s/(?])(Corr<\/N> Shliabh<\/N>)(?![<>])/$1<\/E>/g;
3083 485 50       1793 if (s/(?])(g?[Cc]os<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3084 0         0 s/(]*>g?[Cc]os<\/N> (?:]*gnt="y"[^>]*>(?:bhata|chrainn|mhaide|mh\x{f3}na|phlaistigh)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3085             }
3086 485 50       1784 if (s/(?])([Cc]hos<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3087 0         0 s/(]*>[Cc]hos<\/N> (?:]*gnt="y"[^>]*>(?:bhata|chrainn|mhaide|mh\x{f3}na|phlaistigh)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3088             }
3089 485         1445 s/(?])(g?[Cc]h?os<\/N> (?:]*gnt="y"[^>]*>(?:bata|crainn|maide|m\x{f3}na|plaistigh)<\/N>))(?![<>])/$1<\/E>/g;
3090 485         1075 s/(?])([Aa]n<\/T> C\x{f3}sta<\/N> R\x{ed}ce<\/N>)(?![<>])/$1<\/E>/g;
3091 485         1237 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Ch\x{f3}sta<\/N> R\x{ed}ce<\/N>)(?![<>])/$1<\/E>/g;
3092 485         1095 s/(?])((?:<[DST][^>]*>[^<]+<\/[DST]>) (?:]*>g?ch?r\x{e1}dh<\/V>))(?![<>])/$1<\/E>/g;
3093 485         1412 s/(?])(g?[Cc]h?r\x{fa}b<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3094 485         1061 s/(?])(g?[Cc]h?uan<\/N> mara<\/N>)(?![<>])/$1<\/E>/g;
3095 485 50       1719 if (s/(?])(cuibheasach<\/A> (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
3096 0         0 s/(]*>cuibheasach<\/A> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3097             }
3098 485         1208 s/(?])([Cc]huig<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
3099 485         1006 s/(?])([Cc]huig<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
3100 485         1202 s/(?])([Cc]huig<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
3101 485         996 s/(?])([Cc]huig<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
3102 485         937 s/(?])([Cc]huig<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
3103 485         1288 s/(?])([Cc]huig<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
3104 485         1069 s/(?])([Cc]huig<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
3105 485         1288 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> <[A-DF-Z][^>]*>uaire?<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3106 485 100       1844 if (s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
3107 1         8 s/(]*><[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*>(?:[Bb]liana|[Cc]inn|[Cc]loigne|[Cc]uarta|[Ff]ichid|[Pp]ingine|[Ss]eachtaine|[Tt]roithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3108             }
3109 485         1377 s/(?])(<[A-DF-Z][^>]*>g?[Cc]\x{fa}ig<\/[A-DF-Z]> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
3110 485         1157 s/(?])(<[A-DF-Z][^>]*>[Cc]h\x{fa}ig<\/[A-DF-Z]> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
3111 485 50       3349 if (s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3112 0         0 s/(]*><[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3113             }
3114 485 50       1996 if (s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3115 0         0 s/(]*><[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3116             }
3117 485         3829 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Bb]hliain<\/N>)(?![<>])/$1<\/E>/g;
3118 485         4288 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Cc]heann<\/N>)(?![<>])/$1<\/E>/g;
3119 485         4015 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Cc]hloigeann<\/N>)(?![<>])/$1<\/E>/g;
3120 485         3400 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Cc]huairt<\/N>)(?![<>])/$1<\/E>/g;
3121 485         3912 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Ff]hiche<\/N>)(?![<>])/$1<\/E>/g;
3122 485         3984 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Oo]rlach<\/N>)(?![<>])/$1<\/E>/g;
3123 485         3376 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Pp]hingin<\/N>)(?![<>])/$1<\/E>/g;
3124 485         3398 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
3125 485         3472 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Ss]heachtain<\/N>)(?![<>])/$1<\/E>/g;
3126 485         3178 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Tt]hroigh<\/N>)(?![<>])/$1<\/E>/g;
3127 485         3239 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Uu]bh<\/N>)(?![<>])/$1<\/E>/g;
3128 485 100       3052 if (s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3129 1         10 s/(]*><[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> (?:]*pl="y"[^>]*>(?:bliana|cinn|cloigne|fichid|huaire|horla\x{ed}|troithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  1         6  
3130             }
3131 485 50       2362 if (s/(?])(g?[Cc]h?\x{fa}igear<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3132 0         0 s/(]*>g?[Cc]h?\x{fa}igear<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3133             }
3134 485         1172 s/(?])(g?[Cc]h?\x{fa}igear<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
3135 485 50       1722 if (s/(?])([Cc]hun<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
3136 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3137 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3138             }
3139 485 50       1761 if (s/(?])([Cc]hun<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
3140 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3141 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3142             }
3143 485 50       1822 if (s/(?])([Cc]hun<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g) {
3144 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3145 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3146 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3147             }
3148 485 50       1679 if (s/(?])([Cc]hun<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g) {
3149 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3150 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3151 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3152             }
3153 485 50       1800 if (s/(?])([Cc]hun<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
3154 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3155 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3156             }
3157 485 50       1685 if (s/(?])([Cc]hun<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
3158 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3159 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3160             }
3161 485 50       2638 if (s/(?])([Cc]hun<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g) {
3162 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3163 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3164 0         0 s/(]*>[Cc]hun<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3165             }
3166 485 50       1989 if (s/(?])((?:]*>g?[Cc]h?unta<\/N>))(?![<>])/$1<\/E>/g) {
3167 0         0 s/([Aa]n<\/T> ]*>(?:]*>[Cc]h?unta<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3168 0         0 s/(]*>(?:]*>[Cc]h?unta<\/N>)<\/E> [^<]+<\/Y>)/strip_errors($1);/eg;
  0         0  
3169             }
3170 485         1117 s/(?])((?:]*>[Cc]h?\x{fa}pla<\/N>) (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3171 485         963 s/(?])((?:]*>[Cc]h?\x{fa}pla<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3172 485         1141 s/(?])(<[A-DF-Z][^>]*>[Dd]\x{e1}<\/[A-DF-Z]> (?:]*>[Mm]h?\x{e9}id<\/N>))(?![<>])/$1<\/E>/g;
3173 485         1177 s/(?])([Dd]\x{e1}<\/C> [^<]+<\/V>)(?![<>])/$1<\/E>/g;
3174 485 100       4659 if (s/(?])([Dd]\x{e1}<\/C> (?:]*t="...[^n][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3175 1         21 s/((?:<[^\/C][^>]*>[^<]+<\/[^C]>) ]*>[Dd]\x{e1}<\/C> (?:]*t="...[^n][^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         5  
3176             }
3177 485         1575 s/(?])([Dd]\x{e1}<\/C> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3178 485         1422 s/(?])([Dd]h?alla<\/A> mull\x{f3}g<\/N>)(?![<>])/$1<\/E>/g;
3179 485         1097 s/(?])(n?[Dd]h?all<\/N> na<\/T> mull\x{f3}g<\/N>)(?![<>])/$1<\/E>/g;
3180 485         1565 s/(?])((?:]*>damh<\/N>))(?![<>])/$1<\/E>/g;
3181 485         924 s/(?])(ru\x{e1}n<\/N> alla<\/N>)(?![<>])/$1<\/E>/g;
3182 485 50       2014 if (s/(?])((?:n?Dh?anmhairg|n?Dh?amaisc)<\/N>)(?![<>])/$1<\/E>/g) {
3183 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3184 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3185 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3186             }
3187 485 50       2574 if (s/(?])((?:n?Dh?anmhairge|n?Dh?amaisce)<\/N>)(?![<>])/$1<\/E>/g) {
3188 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3189             }
3190 485         2454 s/(?])([Dd]ar<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3191 485 50       2310 if (s/(?])([Dd]ar<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3192 0         0 s/(]*>[Dd]ar<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3193             }
3194 485         1441 s/(?])(<[A-DF-Z][^>]*>[Dd]ar<\/[A-DF-Z]> gcionn<\/N>)(?![<>])/$1<\/E>/g;
3195 485         1515 s/(?])([Dd]ar<\/V> \x{e9}is<\/N>)(?![<>])/$1<\/E>/g;
3196 485         1054 s/(?])([Dd]ar<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3197 485         1167 s/(?])([Dd]ar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3198 485         1134 s/(?])([Dd]arb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3199 485         1151 s/(?])([Dd]arbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3200 485         1271 s/(?])([Dd]arbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3201 485         1052 s/(?])([Dd]arbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3202 485         1177 s/(?])([Dd]\x{e1}r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3203 485 100       2559 if (s/(?])([Dd]\x{e1}r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3204 1         6 s/(]*>[Dd]\x{e1}r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3205             }
3206 485         1588 s/(?])(<[A-DF-Z][^>]*>[Dd]\x{e1}r<\/[A-DF-Z]> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3207 485         3080 s/(?])(<[A-DF-Z][^>]*>[Dd]\x{e1}r<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3208 485         1585 s/(?])(<[A-DF-Z][^>]*>[Dd]\x{e1}r<\/[A-DF-Z]> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3209 485 50       1872 if (s/(?])((?:]*>n?[Dd]h?\x{e1}r\x{e9}ag<\/N>) (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3210 0         0 s/(]*>(?:]*>n?[Dd]h?\x{e1}r\x{e9}ag<\/N>) ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3211             }
3212 485         1089 s/(?])((?:]*>n?[Dd]h?\x{e1}r\x{e9}ag<\/N>) m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
3213 485 50       2139 if (s/(?])(dh?athanna\x{ed}<\/A>)(?![<>])/$1<\/E>/g) {
3214 0         0 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>dh?athanna\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3215 0         0 s/([Nn]\x{ed}os<\/R> ]*>dh?athanna\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3216 0         0 s/([Ii]s<\/V> ]*>dh?athanna\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3217             }
3218 485         1526 s/(?])((?:<[OS][^>]*>[Dd]e<\/[OS]>) sna<\/S>)(?![<>])/$1<\/E>/g;
3219 485         1056 s/(?])((?:]*>Dh\x{e9}<\/N>) (?:]*>[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3220 485         1243 s/(?])((?:]*>Dh\x{e9}ardaoin<\/N>))(?![<>])/$1<\/E>/g;
3221 485         1181 s/(?])((?:]*>D\x{e9}<\/N>) (?:Dh?omhnach|Luan|Sh?atharn)<\/N>)(?![<>])/$1<\/E>/g;
3222 485         1154 s/(?])(<[A-DF-Z][^>]*>D\x{e9}<\/[A-DF-Z]> <[A-DF-Z][^>]*>Aoine<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3223 485         948 s/(?])(nd\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3224 485         1097 s/(?])((?:]*pl="n" gnt="n"[^>]*>[^< ]*[^bcdfghjlmnprstvxz <]+<\/N>) d\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3225 485 50       2209 if (s/(?])((?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) d\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g) {
3226 0         0 s/(]*>(?:]*pl="y"[^>]*>g?ch?inn<\/N>) d\x{e9}ag<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3227             }
3228 485         1187 s/(?])(g?cinn<\/N> dh\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3229 485         940 s/(?])(chinn<\/N> dh\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3230 485         1198 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?\x{f3}<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3231 485         1258 s/(?])([Aa] [Dd]\x{f3}<\/A> [Dd]\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3232 485 50       2180 if (s/(?])([Dd]\x{f3} [Dd]h\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3233 0         0 s/([Nn]\x{f3}<\/C> ]*>[Dd]\x{f3} [Dd]h\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3234             }
3235 485         1410 s/(?])(<[A-DF-Z][^>]*>d?[Tt]h?r\x{ed}<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3236 485         1103 s/(?])([Aa] [Tt]r\x{ed}<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3237 485 100       2148 if (s/(?])([Tt]r\x{ed} [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3238 1         4 s/([Nn]\x{f3}<\/C> ]*>[Tt]r\x{ed} [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3239             }
3240 485         1545 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?eathair<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3241 485         1133 s/(?])([Aa] [Cc]eathair<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3242 485 50       1779 if (s/(?])([Cc]eathair [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3243 0         0 s/([Nn]\x{f3}<\/C> ]*>[Cc]eathair [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3244             }
3245 485         1451 s/(?])(<[A-DF-Z][^>]*>g?[Cc]h?\x{fa}ig<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3246 485         1046 s/(?])([Aa] [Cc]\x{fa}ig<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3247 485 50       1826 if (s/(?])([Cc]\x{fa}ig [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3248 0         0 s/([Nn]\x{f3}<\/C> ]*>[Cc]\x{fa}ig [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3249             }
3250 485         1345 s/(?])(<[A-DF-Z][^>]*>[Ss]h?\x{e9}<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3251 485         1188 s/(?])([Aa] [Ss]\x{e9}<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3252 485 50       1744 if (s/(?])([Ss]\x{e9} [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3253 0         0 s/([Nn]\x{f3}<\/C> ]*>[Ss]\x{e9} [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3254             }
3255 485         1427 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3256 485         1467 s/(?])([Aa] [Ss]eacht<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3257 485 50       2181 if (s/(?])([Ss]eacht [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3258 0         0 s/([Nn]\x{f3}<\/C> ]*>[Ss]eacht [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3259             }
3260 485         1402 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3261 485         921 s/(?])([Aa] h[Oo]cht<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3262 485 50       1651 if (s/(?])([Oo]cht [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3263 0         0 s/([Nn]\x{f3}<\/C> ]*>[Oo]cht [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3264             }
3265 485         1834 s/(?])(<[A-DF-Z][^>]*>[Nn]aoi<\/[A-DF-Z]> [Dd]h?\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3266 485         1084 s/(?])([Aa] [Nn]aoi<\/A> [Dd]h\x{e9}ag<\/N>)(?![<>])/$1<\/E>/g;
3267 485 50       1818 if (s/(?])([Nn]aoi [Dd]\x{e9}ag<\/A>)(?![<>])/$1<\/E>/g) {
3268 0         0 s/([Nn]\x{f3}<\/C> ]*>[Nn]aoi [Dd]\x{e9}ag<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3269             }
3270 485         1506 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> m[Bb]liain<\/N>)(?![<>])/$1<\/E>/g;
3271 485         1258 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> g[Cc]eann<\/N>)(?![<>])/$1<\/E>/g;
3272 485         1282 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> g[Cc]loigeann<\/N>)(?![<>])/$1<\/E>/g;
3273 485         1051 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> g[Cc]uairt<\/N>)(?![<>])/$1<\/E>/g;
3274 485         1068 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> bh[Ff]iche<\/N>)(?![<>])/$1<\/E>/g;
3275 485         1100 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> n-orlach<\/N>)(?![<>])/$1<\/E>/g;
3276 485         1271 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> b[Pp]ingin<\/N>)(?![<>])/$1<\/E>/g;
3277 485         3636 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
3278 485         3272 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> [Ss]eachtain<\/N>)(?![<>])/$1<\/E>/g;
3279 485         1266 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> d[Tt]roigh<\/N>)(?![<>])/$1<\/E>/g;
3280 485         951 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> n-ubh<\/N>)(?![<>])/$1<\/E>/g;
3281 485         1350 s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> n-uair<\/N>)(?![<>])/$1<\/E>/g;
3282 485 50       1937 if (s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3283 0         0 s/(]*><[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> (?:]*pl="y"[^>]*>(?:mbliana|gcinn|gcloigne|bhfichid|n-uaire|n-orla\x{ed}|dtroithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3284             }
3285 485 50       3440 if (s/(?])(<[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3286 0         0 s/(]*><[A-DF-Z][^>]*>n?[Dd]h?eich<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3287             }
3288 485 50       1875 if (s/(?])(n?[Dd]h?eichni\x{fa}r<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3289 0         0 s/(]*>n?[Dd]h?eichni\x{fa}r<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3290             }
3291 485         1166 s/(?])(n?[Dd]h?eichni\x{fa}r<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
3292 485         1426 s/(?])(deifir<\/N> idir<\/S>)(?![<>])/$1<\/E>/g;
3293 485         1470 s/(?])(n?Dh?eireadh<\/N> Fh?\x{f3}mhar<\/N>)(?![<>])/$1<\/E>/g;
3294 485         5374 s/(?])(<[A-DF-Z][^>]*>[Dd][eo]<\/[A-DF-Z]> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3295 485         1160 s/(?])(n?[Dd]h?eoir<\/N> [Ff]hola<\/N>)(?![<>])/$1<\/E>/g;
3296 485         1452 s/(?])(<[A-DF-Z][^>]*>[Dd][eo]n?<\/[A-DF-Z]> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
3297 485         1580 s/(?])(<[A-DF-Z][^>]*>[Dd][eo]n?<\/[A-DF-Z]> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
3298 485         5076 s/(?])(<[A-DF-Z][^>]*>[Dd][eo]n?<\/[A-DF-Z]> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3299 485         1261 s/(?])([Dd][eo]n<\/S> (?:]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3300 485         1335 s/(?])([Dd][eo]n<\/S> (?:]*>(?:n[Dd]|d[Tt]|[DdSsTt][Hh])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3301 485         1619 s/(?])([Dd][eo]n<\/S> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
3302 485         2390 s/(?])(<[A-DF-Z][^>]*>[Dd]e<\/[A-DF-Z]> an<\/T>)(?![<>])/$1<\/E>/g;
3303 485         1542 s/(?])([Dd]h\x{e1}<\/A> (?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3304 485 100       2053 if (s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3305 6         37 s/((?:[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> ]*>[Dd]h\x{e1}<\/A> <[A-DF-Z][^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         9  
3306             }
3307 485 50       2020 if (s/(?])([Dd]h?\x{e1}<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3308 0         0 s/(]*>[Dd]h?\x{e1}<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3309             }
3310 485 50       1864 if (s/(?])([Dd]h?\x{e1}<\/A> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3311 0         0 s/(]*>[Dd]h?\x{e1}<\/A> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3312             }
3313 485         1564 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Bb]hliana<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3314 485         1364 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Cc]hinn<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3315 485         1492 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Cc]hloigne<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3316 485         1020 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Ff]hichid<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3317 485         953 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Tt]hroithe<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3318 485         1191 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Pp]hingine<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3319 485         1095 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Ss]cillinge<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3320 485         1096 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Ss]heachtaine<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3321 485         1068 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Uu]ibhe<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3322 485         1123 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>h?uaire<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3323 485         1555 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>h?orla\x{ed}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3324 485         1453 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>m?[Bb]h?os<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3325 485         1085 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>m?[Bb]h?r\x{f3}g<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3326 485         1299 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>g?[Cc]h?luas<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3327 485         1062 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>g?[Cc]h?os<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3328 485         1412 s/(?])([Dd]h?\x{e1}<\/A> <[A-DF-Z][^>]*>[Ll]\x{e1}mh<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3329 485         1419 s/(?])([Aa]n<\/T> [Dd]h\x{e1}<\/A>)(?![<>])/$1<\/E>/g;
3330 485         993 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> [Dd]h\x{e1}<\/A>)(?![<>])/$1<\/E>/g;
3331 485         1117 s/(?])([Cc]\x{e9}ad<\/A> [Dd]h\x{e1}<\/A>)(?![<>])/$1<\/E>/g;
3332 485         1189 s/(?])([Cc]h\x{e9}ad<\/A> [Dd]h\x{e1}<\/A>)(?![<>])/$1<\/E>/g;
3333 485         1187 s/(?])([Cc]\x{e9}ad<\/A> (?:]*>[Dd]h\x{e1}r\x{e9}ag<\/N>))(?![<>])/$1<\/E>/g;
3334 485         1290 s/(?])([Cc]h\x{e9}ad<\/A> (?:]*>[Dd]h\x{e1}r\x{e9}ag<\/N>))(?![<>])/$1<\/E>/g;
3335 485 50       1747 if (s/(?])((?:]*>[Dd]\x{e1}r\x{e9}ag<\/N>))(?![<>])/$1<\/E>/g) {
3336 0         0 s/([Aa]n<\/T> ]*>(?:]*>[Dd]\x{e1}r\x{e9}ag<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3337 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*>[Dd]\x{e1}r\x{e9}ag<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3338 0         0 s/([Aa]on<\/A> ]*>(?:]*>[Dd]\x{e1}r\x{e9}ag<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3339 0         0 s/([Cc]h?\x{e9}ad<\/A> ]*>(?:]*>[Dd]\x{e1}r\x{e9}ag<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3340             }
3341 485         1585 s/(?])([Dd]h\x{e1}<\/A> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3342 485         1428 s/(?])([Aa]n<\/T> <[A-DF-Z][^>]*>[Dd]\x{e1}<\/[A-DF-Z]> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3343 485         914 s/(?])(Dia<\/N> Luain<\/N>)(?![<>])/$1<\/E>/g;
3344 485         1204 s/(?])(Dia<\/N> M\x{e1}irt<\/N>)(?![<>])/$1<\/E>/g;
3345 485         1341 s/(?])(Dia<\/N> C\x{e9}adaoin<\/N>)(?![<>])/$1<\/E>/g;
3346 485         901 s/(?])(Dia<\/N> hAoine<\/N>)(?![<>])/$1<\/E>/g;
3347 485         963 s/(?])(Dia<\/N> Sathairn<\/N>)(?![<>])/$1<\/E>/g;
3348 485         1291 s/(?])(Dia<\/N> Domhnaigh<\/N>)(?![<>])/$1<\/E>/g;
3349 485         1283 s/(?])(dh\x{ed}leas<\/N>)(?![<>])/$1<\/E>/g;
3350 485         1059 s/(?])(d\x{ed}leas<\/N>)(?![<>])/$1<\/E>/g;
3351 485         5444 s/(?])(<[A-DF-Z][^>]*>[Dd]h?\x{ed}s<\/[A-DF-Z]> (?:]*gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3352 485         5136 s/(?])(<[A-DF-Z][^>]*>[Dd]h?\x{ed}s<\/[A-DF-Z]> (?:]*pl="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3353 485         1344 s/(?])(d\x{fa}ra<\/A> dara<\/A>)(?![<>])/$1<\/E>/g;
3354 485 50       1510 if (s/(?])(n\x{f3}<\/C> <[A-DF-Z][^>]*>d\x{f3}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3355 0         0 s/((?:]*>di<\/O>) ]*>n\x{f3}<\/C> <[A-DF-Z][^>]*>d\x{f3}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
3356             }
3357 485 50       1592 if (s/(?])(<[A-DF-Z][^>]*>dh\x{f3}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3358 0         0 s/(<[A-DF-Z][^>]*>(?:a|\x{e1})<\/[A-DF-Z]> ]*>dh\x{f3}<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3359 0         0 s/(n\x{f3}<\/C> ]*><[A-DF-Z][^>]*>dh\x{f3}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
3360             }
3361 485         2637 s/(?])(<[A-DF-Z][^>]*>[Dd]o<\/[A-DF-Z]> an<\/T>)(?![<>])/$1<\/E>/g;
3362 485         6311 s/(?])(<[A-DF-Z][^>]*>[Dd][eo]<\/[A-DF-Z]> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3363 485         2223 s/(?])(<[A-DF-Z][^>]*>[Dd]o<\/[A-DF-Z]> <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3364 485         4784 s/(?])(<[A-DF-Z][^>]*>[Dd][eo]<\/[A-DF-Z]> <[A-DF-Z][^>]*>[\x{e1}a]r<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3365 485         1314 s/(?])(<[A-DF-Z][^>]*>[Dd]o<\/[A-DF-Z]> <[A-DF-Z][^>]*>r\x{e9}ir<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3366 485         1238 s/(?])([Dd]o<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
3367 485         1370 s/(?])([Dd]o<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
3368 485         1112 s/(?])([Dd]o<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
3369 485         1225 s/(?])([Dd]o<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
3370 485         1038 s/(?])([Dd]o<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
3371 485         1507 s/(?])([Dd]o<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
3372 485         1010 s/(?])([Dd]o<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
3373 485         1492 s/(?])([Dd]o<\/S> sna<\/S>)(?![<>])/$1<\/E>/g;
3374 485 50       1873 if (s/(?])((?:<[^\/ANR][^>]*>[^<]+<\/[^ANR]>) [Dd]h?oimhne<\/A>)(?![<>])/$1<\/E>/g) {
3375 0         0 s/(]*>[^<]+<\/V> [Dd]h?oimhne<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3376             }
3377 485         1121 s/(?])([Aa]n<\/T> Doiminice<\/N>)(?![<>])/$1<\/E>/g;
3378 485         1311 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Doiminice<\/N>)(?![<>])/$1<\/E>/g;
3379 485         1047 s/(?])(<[A-DF-Z][^>]*>[Dd]h?osaen<\/[A-DF-Z]> (?:]*gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3380 485         1130 s/(?])(<[A-DF-Z][^>]*>[Dd]h?osaen<\/[A-DF-Z]> (?:]*pl="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3381 485         1031 s/(?])(Dubh<\/N> Oile\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
3382 485         1180 s/(?])([Aa]n<\/T> tEacuad\x{f3}r<\/N>)(?![<>])/$1<\/E>/g;
3383 485         929 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Eacuad\x{f3}r<\/N>)(?![<>])/$1<\/E>/g;
3384 485         1196 s/(?])((?:]*>[\x{c9}\x{e9}]agos\x{fa}i?la?<\/A>))(?![<>])/$1<\/E>/g;
3385 485 50       1941 if (s/(?])([\x{c9}\x{e9}]al\x{f3}dh<\/V>)(?![<>])/$1<\/E>/g) {
3386 0         0 s/([Nn]\x{ed}<\/U> ]*>[\x{c9}\x{e9}]al\x{f3}dh<\/V><\/E>)/strip_errors($1);/eg;
  0         0  
3387             }
3388 485         1051 s/(?])([Aa]irc<\/N> luachra<\/N>)(?![<>])/$1<\/E>/g;
3389 485         780 s/(?])(alp<\/V> luachra<\/N>)(?![<>])/$1<\/E>/g;
3390 485         1295 s/(?])([Ii]s<\/V> (?:]*>\x{e9}<\/P>) rud<\/N>)(?![<>])/$1<\/E>/g;
3391 485         1025 s/(?])([Aa]r<\/S> \x{e9}igin<\/A>)(?![<>])/$1<\/E>/g;
3392 485         1052 s/(?])([^<]+<\/V> \x{e9}igin<\/A>)(?![<>])/$1<\/E>/g;
3393 485         1093 s/(?])([Aa]n<\/T> \x{c9}ire<\/N>)(?![<>])/$1<\/E>/g;
3394 485         1071 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> \x{c9}ire<\/N>)(?![<>])/$1<\/E>/g;
3395 485         1180 s/(?])(Eire<\/N>)(?![<>])/$1<\/E>/g;
3396 485         2603 s/(?])((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> (?:]*>(?:[nh])?\x{c9}ire(?:ann)?<\/N>))(?![<>])/$1<\/E>/g;
3397 485         1261 s/(?])([Aa]g<\/S> [Ee]ir\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
3398 485         1281 s/(?])([Ee]ir\x{ed}<\/N> <[A-DF-Z][^>]*>[Aa]s<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3399 485         1191 s/(?])(d'eir\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
3400 485 50       4012 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[mdnh]?'?Eoraip|[mdnh]?'?Eilv\x{e9}is|[mdnh]?'?East\x{f3}in|[mdnh]?'?\x{c9}igipt)<\/N>))(?![<>])/$1<\/E>/g) {
3401 0         0 s/([Aa]n<\/T> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3402 0         0 s/((?:]*>San<\/N>) ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3403 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3404 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3405             }
3406 485 100       2490 if (s/(?])((?:]*pl="n" gnt="y" gnd="f"[^>]*>(?:[mdnh]?'?Eorpa|[mdnh]?'?Eilv\x{e9}ise|[mdnh]?'?East\x{f3}ine|[mdnh]?'?\x{c9}igipte)<\/N>))(?![<>])/$1<\/E>/g) {
3407 2         20 s/([Nn]a<\/T> ]*>(?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  2         13  
3408             }
3409 485         1193 s/(?])([Ff]\x{e1}<\/S> dheifre<\/N>)(?![<>])/$1<\/E>/g;
3410 485         1321 s/(?])([Ff]\x{e1}<\/S> (?:]*>[Dd]ear<\/V>))(?![<>])/$1<\/E>/g;
3411 485         1313 s/(?])([Ff]\x{e1}<\/S>)(?![<>])/$1<\/E>/g;
3412 485         1357 s/(?])([Ff]ad<\/N> \x{f3} shin<\/R>)(?![<>])/$1<\/E>/g;
3413 485 50       1550 if (s/(?])(fhad<\/N> is<\/V>)(?![<>])/$1<\/E>/g) {
3414 0         0 s/(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> ]*>fhad<\/N> is<\/V><\/E>)/strip_errors($1);/eg;
  0         0  
3415             }
3416 485         1201 s/(?])((?:]*>fh?aid<\/N>) is<\/V>)(?![<>])/$1<\/E>/g;
3417 485         2051 s/(?])((?:]*>fh?aid<\/N>) <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3418 485         1288 s/(?])((?:[Aa][rg]|[Ll]e)<\/S> [Ff]ail<\/N>)(?![<>])/$1<\/E>/g;
3419 485         1039 s/(?])([Aa]<\/S> fhail<\/N>)(?![<>])/$1<\/E>/g;
3420 485         1002 s/(?])([\x{c1}\x{e1}]<\/D> fhail<\/N>)(?![<>])/$1<\/E>/g;
3421 485         1437 s/(?])([\x{c1}\x{e1}]<\/D> bhfail<\/N>)(?![<>])/$1<\/E>/g;
3422 485         978 s/(?])(f\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
3423 485 50       1779 if (s/(?])((?:bh)?[Ff]h?alaing<\/N>)(?![<>])/$1<\/E>/g) {
3424 0         0 s/([Aa]r<\/S> ]*>f\x{e1}n<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3425             }
3426 485         1445 s/(?])([Ff]aoi<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3427 485         1328 s/(?])([Ff]aoi<\/S> (?:]*>[Dd]ear<\/V>))(?![<>])/$1<\/E>/g;
3428 485         1204 s/(?])([Ff]aoi<\/S> n-\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
3429 485         1351 s/(?])([Ff]aoi<\/S> an<\/T>)(?![<>])/$1<\/E>/g;
3430 485 50       1735 if (s/(?])([Ff]aoi<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
3431 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3432 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3433             }
3434 485 50       1847 if (s/(?])([Ff]aoi<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
3435 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3436 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3437             }
3438 485 50       1871 if (s/(?])([Ff]aoi<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g) {
3439 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3440 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3441 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3442             }
3443 485 50       1858 if (s/(?])([Ff]aoi<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g) {
3444 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3445 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3446 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3447             }
3448 485 50       1785 if (s/(?])([Ff]aoi<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
3449 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3450 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3451             }
3452 485 50       1655 if (s/(?])([Ff]aoi<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
3453 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3454 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3455             }
3456 485 50       6838 if (s/(?])([Ff]aoi<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g) {
3457 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3458 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3459 0         0 s/(]*>[Ff]aoi<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3460             }
3461 485         2753 s/(?])(<[A-DF-Z][^>]*>[Ff]aoin?<\/[A-DF-Z]> <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3462 485         1518 s/(?])(<[A-DF-Z][^>]*>[Ff]aoin?<\/[A-DF-Z]> <[A-DF-Z][^>]*>\x{e1}r<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3463 485         1021 s/(?])([Ff]aoin?<\/S> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
3464 485         1227 s/(?])([Ff]aoin?<\/S> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
3465 485         1484 s/(?])([Ff]aoin?<\/S> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3466 485         1197 s/(?])([Ff]aoin<\/S> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3467 485 50       2183 if (s/(?])([Ff]aoin<\/S> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3468 0         0 s/(]*>[Ff]aoin<\/S> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3469             }
3470 485         1482 s/(?])([Ff]aoin<\/S> (?:]*>(?:n[Dd]|d[Tt]|[DdSsTt][Hh])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3471 485         1476 s/(?])([Ff]aoin<\/S> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
3472 485 100       1544 if (s/(?])([Ff]aoina<\/S> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3473 1         9 s/(]*>[Ff]aoina<\/S> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3474 1         11 s/(]*>[Ff]aoina<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
3475             }
3476 485 100       1837 if (s/(?])([Ff]aoina<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
3477 1         7 s/(]*>[Ff]aoina<\/S> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3478             }
3479 485         1577 s/(?])([Ff]aoinar<\/S> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3480 485         1153 s/(?])([Ff]aoinar<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3481 485         1207 s/(?])([Ff]aoinar<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3482 485         1117 s/(?])([Ff]aoinar<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3483 485         1344 s/(?])([Ff]aoinar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3484 485         1306 s/(?])([Ff]aoinarb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3485 485         1414 s/(?])([Ff]aoinarbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3486 485         1128 s/(?])([Ff]aoinarbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3487 485         1183 s/(?])([Ff]aoinarbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3488 485         1119 s/(?])([Ff]aoin\x{e1}r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3489 485 100       1888 if (s/(?])([Ff]aoin\x{e1}r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3490 1         4 s/(]*>[Ff]aoin\x{e1}r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3491             }
3492 485         1139 s/(?])([Ff]h?aradh<\/N> na<\/T> f\x{e1}ilte<\/N>)(?![<>])/$1<\/E>/g;
3493 485         1472 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) [Ff]heasa<\/N>)(?![<>])/$1<\/E>/g;
3494 485         1031 s/(?])((?:]*>F\x{e9}ile<\/N>) [BCDFGMPST][Hh][^<]+<\/Y>)(?![<>])/$1<\/E>/g;
3495 485         1385 s/(?])((?:]*>Fh\x{e9}ile<\/N>) [BCDFGMPST][Hh][^<]+<\/Y>)(?![<>])/$1<\/E>/g;
3496 485         1113 s/(?])((?:]*>F\x{e9}ile<\/N>) (?:]*gnt="y"[^>]*>[BCDFGMPST][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
3497 485 50       1408 if (s/(?])((?:]*>Fh\x{e9}ile<\/N>) (?:]*gnt="y"[^>]*>[BCDFGMPST][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3498 0         0 s/(]*>(?:]*>Fh?\x{e9}ile<\/N>) (?:Bhealtaine|Shamhna)<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3499             }
3500 485         1912 s/(?])((?:]*>Fh?\x{e9}ile<\/N>) (?:]*>(?:Bealtaine|Samhna)<\/N>))(?![<>])/$1<\/E>/g;
3501 485         1120 s/(?])((?:bh)?[Ff]h?ionntar<\/V>)(?![<>])/$1<\/E>/g;
3502 485         1199 s/(?])((?:]* p="y"[^>]*>[^<]+<\/V>) fhios<\/N>)(?![<>])/$1<\/E>/g;
3503 485 50       2143 if (s/(?])(fh?ocla\x{ed}<\/A>)(?![<>])/$1<\/E>/g) {
3504 0         0 s/(is<\/V> ]*>focla\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3505 0         0 s/(n\x{ed}os<\/R> ]*>focla\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3506             }
3507 485         1315 s/(?])([Ff]h?uath<\/N> f\x{ed}ona<\/N>)(?![<>])/$1<\/E>/g;
3508 485 50       2053 if (s/(?])((?:bhFrainc|Fh?rainc|bhFionlainn|Fh?ionlainn)<\/N>)(?![<>])/$1<\/E>/g) {
3509 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3510 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3511 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3512             }
3513 485 50       2150 if (s/(?])((?:bhFraince|Fh?raince|bhFionlainne|Fh?ionlainne)<\/N>)(?![<>])/$1<\/E>/g) {
3514 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3515             }
3516 485         1165 s/(?])(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> fhuair<\/A>)(?![<>])/$1<\/E>/g;
3517 485         1007 s/(?])([Nn]\x{ed}<\/N> fhuair<\/A>)(?![<>])/$1<\/E>/g;
3518 485         1166 s/(?])([Ff]h?uarlach<\/N> cro\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
3519 485         918 s/(?])([Aa]g<\/S> gabhail<\/N>)(?![<>])/$1<\/E>/g;
3520 485         994 s/(?])([Aa]<\/S> ghabhail<\/N>)(?![<>])/$1<\/E>/g;
3521 485         1507 s/(?])([Gg]ach<\/A> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3522 485         1763 s/(?])([Gg]ach<\/A> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3523 485 100       1970 if (s/(?])(n?Gh?aillimhe<\/N>)(?![<>])/$1<\/E>/g) {
3524 1         9 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  1         9  
3525             }
3526 485         1219 s/(?])([Bb]a<\/V> ghaiste<\/N>)(?![<>])/$1<\/E>/g;
3527 485 100       1958 if (s/(?])([Ii]s<\/V> gaiste<\/N>)(?![<>])/$1<\/E>/g) {
3528 1         11 s/(]*>[Ii]s<\/V> gaiste<\/N><\/E> (?:]*>[\x{e9}\x{ed}]<\/P>))/strip_errors($1);/eg;
  1         6  
3529             }
3530 485         1350 s/(?])([Gg]an<\/S> (?:]*>[^<]+<\/N>) n\x{f3}<\/C> (?:]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3531 485         1323 s/(?])([Gg]an<\/S> (?:]*>[DdFfSsTt][Hh][^<]+<\/N>))(?![<>])/$1<\/E>/g;
3532 485         1138 s/(?])([Gg]an<\/S> (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/Y>)(?![<>])/$1<\/E>/g;
3533 485         1249 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) n\x{e1}<\/C>)(?![<>])/$1<\/E>/g;
3534 485         1323 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:<[AO][^>]*>[^<]+<\/[AO]>))(?![<>])/$1<\/E>/g;
3535 485         1004 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) <[A-DF-Z][^>]*>d\x{e1}<\/[A-DF-Z]> laghad<\/N>)(?![<>])/$1<\/E>/g;
3536 485         1069 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) ar bith<\/R>)(?![<>])/$1<\/E>/g;
3537 485         980 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) go br\x{e1}ch<\/R>)(?![<>])/$1<\/E>/g;
3538 485         1182 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:amach|amh\x{e1}in)<\/R>)(?![<>])/$1<\/E>/g;
3539 485         1018 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3540 485         1051 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3541 485         1404 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) <[A-DF-Z][^>]*>a<\/[A-DF-Z]> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>))(?![<>])/$1<\/E>/g;
3542 485         1431 s/(?])([Gg]an<\/S> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) <[A-DF-Z][^>]*>a<\/[A-DF-Z]> (?:]*>(?:bheith|cheannach|chur|dh\x{ed}ol|dhul|fhoghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|shol\x{e1}thar|theacht)<\/N>))(?![<>])/$1<\/E>/g;
3543 485         1333 s/(?])([Gg]an<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3544 485         940 s/(?])([Gg]an<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
3545 485         1238 s/(?])([Gg]an<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
3546 485 100       2006 if (s/(?])([Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>))(?![<>])/$1<\/E>/g) {
3547 7         56 s/(]*>[Gg]an<\/S> (?:]*>(?:[Bb]eann|[Bb]reith|[Cc]ead|[Cc][ou]r|[Mm]\x{f3}r\x{e1}n|[Pp]uinn)<\/N>)<\/E>)/strip_errors($1);/eg;
  1         8  
3548 7         132 s/(]*>[Gg]an<\/S> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>)<\/E>)/strip_errors($1);/eg;
  1         7  
3549 7         26 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> n\x{e1}<\/C>)/strip_errors($1);/eg;
  0         0  
3550 7         45 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> (?:<[AO][^>]*>[^<]+<\/[AO]>))/strip_errors($1);/eg;
  1         11  
3551 7         24 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> <[A-DF-Z][^>]*>d\x{e1}<\/[A-DF-Z]> laghad<\/N>)/strip_errors($1);/eg;
  1         7  
3552 7         21 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> ar bith<\/R>)/strip_errors($1);/eg;
  0         0  
3553 7         24 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> go br\x{e1}ch<\/R>)/strip_errors($1);/eg;
  1         12  
3554 7         20 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> (?:amach|amh\x{e1}in)<\/R>)/strip_errors($1);/eg;
  0         0  
3555 7         20 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3556 7         18 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3557 7         37 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> <[A-DF-Z][^>]*>a<\/[A-DF-Z]> (?:]*>[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>))/strip_errors($1);/eg;
  0         0  
3558 7         35 s/(]*>[Gg]an<\/S> (?:]*>[BbCcGgMmPp][^Hh'][^<]*<\/N>)<\/E> <[A-DF-Z][^>]*>a<\/[A-DF-Z]> (?:]*>(?:bheith|cheannach|chur|dh\x{ed}ol|dhul|fhoghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|shol\x{e1}thar|theacht)<\/N>))/strip_errors($1);/eg;
  0         0  
3559             }
3560 485         1625 s/(?])([Gg]an<\/S> [Ff]ios<\/N>)(?![<>])/$1<\/E>/g;
3561 485         916 s/(?])([Aa]n<\/T> (?:G\x{e1}na|Guatamala)<\/N>)(?![<>])/$1<\/E>/g;
3562 485         1191 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Gh\x{e1}na|Ghuatamala)<\/N>)(?![<>])/$1<\/E>/g;
3563 485 50       2582 if (s/(?])((?:n?Gh?earm\x{e1}in|n?Gh?r\x{e9}ig|n?Gh?in\x{e9}iv)<\/N>)(?![<>])/$1<\/E>/g) {
3564 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3565 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3566 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3567             }
3568 485 50       2196 if (s/(?])((?:n?Gh?earm\x{e1}ine|n?Gh?r\x{e9}ige|n?Gh?in\x{e9}ive)<\/N>)(?![<>])/$1<\/E>/g) {
3569 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3570             }
3571 485 50       1524 if (s/(?])(gh\x{e1}<\/N> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3572 0         0 s/(]*>gh\x{e1}<\/N> bheith<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3573 0         0 s/(aon<\/A> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3574             }
3575 485         1377 s/(?])(gh\x{e1}<\/N> (?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3576 485 50       1863 if (s/(?])(gh\x{e1}<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^hHbBcCpPsStT']|[^BbCcDdFfGgMmPpTt])[^<]*(?:a[dm]h|i[nr]t|\x{e1}il|\x{fa})<\/N>))(?![<>])/$1<\/E>/g) {
3577 0         0 s/(aon<\/A> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3578 0         0 s/([^<]+<\/V> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3579 0         0 s/([^<]+<\/S> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3580             }
3581 485 50       1788 if (s/(?])(gh\x{e1}<\/N> (?:]*>(?:ceannach|cur|d\x{ed}ol|dul|foghlaim|\x{ed}oc|iompar|oscailt|r\x{e1}|roinnt|scr\x{ed}obh|sol\x{e1}thar|teacht)<\/N>))(?![<>])/$1<\/E>/g) {
3582 0         0 s/(aon<\/A> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3583 0         0 s/([^<]+<\/V> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3584 0         0 s/([^<]+<\/S> ]*>gh\x{e1}<\/N> (?:]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3585             }
3586 485         1762 s/(?])([^<]+<\/S> (?:]*>[Gg]hn\x{e1}ch<\/A>))(?![<>])/$1<\/E>/g;
3587 485         1083 s/(?])([^<]+<\/S> (?:]*>[Gg]n\x{e1}ch<\/A>))(?![<>])/$1<\/E>/g;
3588 485         1407 s/(?])([Aa]n<\/T> (?:]*>[Gg]n\x{e1}ch<\/A>))(?![<>])/$1<\/E>/g;
3589 485         1180 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> mba<\/V> (?:]*>(?:[\x{e9}\x{ed}]|iad|iadsan|eisean|ise)<\/P>))(?![<>])/$1<\/E>/g;
3590 485         987 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> mba<\/V>)(?![<>])/$1<\/E>/g;
3591 485 50       2938 if (s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> <[A-DF-Z][^>]*>m[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3592 0         0 s/(]*>[Gg]o<\/C> m[Bb]'[Ff]h(?:\x{e9}idir|i\x{fa})<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3593             }
3594 485 100       3905 if (s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3595 4         74 s/(]*><[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  4         19  
3596 4         18 s/(]*><[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3597             }
3598 485         2273 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:<[AN][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[AN]>))(?![<>])/$1<\/E>/g;
3599 485         1273 s/(?])([Gg]o<\/C> obann<\/V>)(?![<>])/$1<\/E>/g;
3600 485 100       3869 if (s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
3601 1         10 s/(]*><[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:]*>[Tt]\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3602             }
3603 485         1222 s/(?])([Gg]o<\/S> fuil<\/N>)(?![<>])/$1<\/E>/g;
3604 485         1069 s/(?])([Gg]o<\/S> t\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
3605 485         2289 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3606 485 100       2625 if (s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
3607 2         12 s/(]*><[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> bheith<\/N><\/E>)/strip_errors($1);/eg;
  1         9  
3608             }
3609 485         2646 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> an<\/T>)(?![<>])/$1<\/E>/g;
3610 485         1649 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> na<\/T>)(?![<>])/$1<\/E>/g;
3611 485         2001 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D>)(?![<>])/$1<\/E>/g;
3612 485         4765 s/(?])(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> (?:]*>[md]'[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3613 485 100       1844 if (s/(?])([Gg]o dt\x{ed}<\/S> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
3614 2         18 s/(]*>[Gg]o dt\x{ed}<\/S> <[A-DF-Z][^>]*>(?:bhur|thart|th\x{fa})<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         7  
3615             }
3616 485         1590 s/(?])([Gg]o dt\x{ed}<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3617 485         1192 s/(?])([Gg]o dt\x{ed}<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
3618 485         1260 s/(?])([Gg]o dt\x{ed}<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
3619 485         1283 s/(?])((?:]*>[^<]+<\/V>) goir<\/N>)(?![<>])/$1<\/E>/g;
3620 485         1112 s/(?])([Aa]on<\/A> ghoir<\/N>)(?![<>])/$1<\/E>/g;
3621 485 50       1773 if (s/(?])(n?[Gg]h?ualainn<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3622 0         0 s/(]*>n?[Gg]h?ualainn<\/N> (?:]*gnt="y"[^>]*>(?:bhag\x{fa}in|chaoireola|mhairteola)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3623             }
3624 485         1276 s/(?])(n?[Gg]h?ualainn<\/N> (?:]*gnt="y"[^>]*>(?:bag\x{fa}in|caoireola|mairteola)<\/N>))(?![<>])/$1<\/E>/g;
3625 485         1240 s/(?])([Gg]ur<\/C> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3626 485         1580 s/(?])([Gg]ur<\/C> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3627 485         1220 s/(?])([Gg]ur<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3628 485         1312 s/(?])([Gg]ur<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3629 485         1295 s/(?])([Gg]urab<\/V>)(?![<>])/$1<\/E>/g;
3630 485         1153 s/(?])([Gg]urb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3631 485         1136 s/(?])([Gg]urbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3632 485         1228 s/(?])([Gg]urbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3633 485         1137 s/(?])([Gg]urbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3634 485         1520 s/(?])([Aa]n<\/T> (?:H\x{e1}\x{ed}t\x{ed}|Hond\x{fa}ras)<\/N>)(?![<>])/$1<\/E>/g;
3635 485         1580 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:H\x{e1}\x{ed}t\x{ed}|Hond\x{fa}ras)<\/N>)(?![<>])/$1<\/E>/g;
3636 485         1263 s/(?])([Ii]<\/S> n-\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
3637 485         1616 s/(?])([Ii]<\/S> (?:]*>n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3638 485         1751 s/(?])([Ii]<\/S> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3639 485         1164 s/(?])([Ii]<\/S> [Dd]h\x{e1}<\/A>)(?![<>])/$1<\/E>/g;
3640 485         2082 s/(?])([Ii]<\/S> (?:<[AN][^>]*>(?:[cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g;
3641 485         1086 s/(?])([Ii]<\/S> [Gg]an [Ff]hios<\/R>)(?![<>])/$1<\/E>/g;
3642 485         1032 s/(?])([Ii]<\/S> [Gg]an<\/S>)(?![<>])/$1<\/E>/g;
3643 485         1300 s/(?])([Ii]<\/S> [Bb]hur<\/D>)(?![<>])/$1<\/E>/g;
3644 485 100       2287 if (s/(?])([Ii]<\/S> (?:<[^\/Y][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^Y]>))(?![<>])/$1<\/E>/g) {
3645 2         14 s/(]*>[Ii]<\/S> thart<\/R><\/E>)/strip_errors($1);/eg;
  1         11  
3646             }
3647 485         1433 s/(?])([Ii]<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
3648 485         1195 s/(?])([Ii]<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
3649 485         1122 s/(?])([Ii]<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
3650 485         1177 s/(?])([Ii]<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
3651 485         1234 s/(?])([Ii]<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
3652 485         1377 s/(?])([Ii]<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
3653 485         1071 s/(?])([Ii]<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
3654 485         1664 s/(?])([Ii]n?<\/S> <[A-DF-Z][^>]*>[Aa]n<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3655 485         1846 s/(?])([Ii]n?<\/S> <[A-DF-Z][^>]*>[Nn]a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3656 485         1506 s/(?])([Ii]n?<\/S> <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3657 485         1571 s/(?])([Ii]n?<\/S> <[A-DF-Z][^>]*>ar<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3658 485         1279 s/(?])([Ii]n?<\/S> \x{e1}r<\/D>)(?![<>])/$1<\/E>/g;
3659 485         1171 s/(?])([Ii]n?<\/S> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
3660 485         1140 s/(?])([Ii]n?<\/S> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
3661 485         1441 s/(?])([Ii]n?<\/S> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3662 485         1269 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>h?iall<\/N>) bhr\x{f3}ige<\/N>)(?![<>])/$1<\/E>/g;
3663 485         1309 s/(?])([Aa]n<\/T> Iam\x{e1}ice<\/N>)(?![<>])/$1<\/E>/g;
3664 485         1094 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Iam\x{e1}ice<\/N>)(?![<>])/$1<\/E>/g;
3665 485 50       3652 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[mdnh]?'?Iarmh\x{ed}|[mdnh]?'?Iar\x{e1}i[cn]|[mdnh]?'?India|[mdnh]?'?Indin\x{e9}is|[mdnh]?'?Iod\x{e1}il|[mdnh]?'?Iord\x{e1}in|[mdnh]?'?Iorua|[mdnh]?'?\x{cd}oslainn|[mdnh]?'?\x{cd}silt\x{ed}r|[mdnh]?'?I\x{fa}gslaiv)<\/N>))(?![<>])/$1<\/E>/g) {
3666 0         0 s/([Aa]n<\/T> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3667 0         0 s/((?:]*>San<\/N>) ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3668 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3669 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3670             }
3671 485 100       2590 if (s/(?])((?:]*pl="n" gnt="y" gnd="f"[^>]*>(?:[mdnh]?'?Iarmh\x{ed}|[mdnh]?'?Iar\x{e1}i[cn]e|[mdnh]?'?India|[mdnh]?'?Indin\x{e9}ise|[mdnh]?'?Iod\x{e1}ile|[mdnh]?'?Iord\x{e1}ine|[mdnh]?'?Iorua|[mdnh]?'?\x{cd}oslainne|[mdnh]?'?\x{cd}silt\x{ed}re|[mdnh]?'?I\x{fa}gslaive)<\/N>))(?![<>])/$1<\/E>/g) {
3672 1         9 s/([Nn]a<\/T> ]*>(?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         4  
3673             }
3674 485         1538 s/(?])([Ii]dir<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3675 485         1179 s/(?])([Ii]dir<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
3676 485         1249 s/(?])([Ii]dir<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
3677 485         1097 s/(?])([Ii]dir<\/S> (?:]*>g?[Cc]am\x{e1}in<\/N>))(?![<>])/$1<\/E>/g;
3678 485         1461 s/(?])([Ii]dir<\/S> g?[Cc]l\x{e9}ir<\/N>)(?![<>])/$1<\/E>/g;
3679 485         1212 s/(?])((?:]*>[Ii]measc<\/V>))(?![<>])/$1<\/E>/g;
3680 485         1776 s/(?])([Ii]n?<\/S> <[A-DF-Z][^>]*>[Dd]\x{e1}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3681 485 100       1804 if (s/(?])([Ii]n<\/S> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3682 6         38 s/(]*>[Ii]n<\/S> <[A-DF-Z][^>]*>n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])[^<]*<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         6  
3683 6         27 s/(]*>[Ii]n<\/S> (?:]*>(?:[0-9]?[18]|1?8[0-9][0-9][0-9]*)<\/A>)<\/E>)/strip_errors($1);/eg;
  1         6  
3684 6         19 s/(]*>[Ii]n<\/S> [Bb]hur<\/D><\/E>)/strip_errors($1);/eg;
  1         9  
3685 6         23 s/(]*>[Ii]n<\/S> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  1         9  
3686             }
3687 485 50       1780 if (s/(?])([Ii]na<\/S> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3688 0         0 s/(]*>[Ii]na<\/S> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3689 0         0 s/(]*>[Ii]na<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3690             }
3691 485 100       2224 if (s/(?])([Ii]na<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
3692 2         19 s/(]*>[Ii]na<\/S> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         9  
3693             }
3694 485         1442 s/(?])([Ii]nar<\/S> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3695 485         1275 s/(?])([Ii]nar<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3696 485         1164 s/(?])([Ii]nar<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3697 485         1536 s/(?])([Ii]nar<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3698 485         1354 s/(?])([Ii]nar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3699 485         1204 s/(?])([Ii]narb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3700 485         1470 s/(?])([Ii]narbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3701 485         1249 s/(?])([Ii]narbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3702 485         1179 s/(?])([Ii]narbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3703 485         1455 s/(?])([Ii]n\x{e1}r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3704 485 100       1904 if (s/(?])([Ii]n\x{e1}r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3705 1         5 s/(]*>[Ii]n\x{e1}r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3706             }
3707 485         1101 s/(?])([Aa]r<\/S> uain<\/N> ar \x{e9}igean<\/R>)(?![<>])/$1<\/E>/g;
3708 485         1122 s/(?])(inse<\/N>)(?![<>])/$1<\/E>/g;
3709 485         1188 s/(?])(bh\x{ed}<\/V> int\x{ed}<\/A>)(?![<>])/$1<\/E>/g;
3710 485         965 s/(?])((?:]*>at\x{e1}(?:i[dm]|imid|thar)?<\/V>) int\x{ed}<\/A>)(?![<>])/$1<\/E>/g;
3711 485         1321 s/(?])([Ii]oma\x{ed}<\/A> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3712 485         1280 s/(?])([Ii]oma\x{ed}<\/A> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3713 485 50       1762 if (s/(?])((?:]*>[Ii]omarca<\/N>))(?![<>])/$1<\/E>/g) {
3714 0         0 s/([Aa]n<\/T> ]*>(?:]*>[Ii]omarca<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3715 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*>[Ii]omarca<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3716             }
3717 485         1703 s/(?])([Ii]na<\/D> [Ii]oml\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
3718 485         1116 s/(?])([Aa]s<\/S> a<\/D> ioml\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
3719 485 50       1608 if (s/(?])([Ii]omp\x{f3}dh<\/V>)(?![<>])/$1<\/E>/g) {
3720 0         0 s/([Nn]\x{ed}<\/U> ]*>[Ii]omp\x{f3}dh<\/V><\/E>)/strip_errors($1);/eg;
  0         0  
3721             }
3722 485         2371 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>h?ionga<\/N>) (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3723 485         1107 s/(?])([Ii]onsar<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3724 485 50       2055 if (s/(?])([Ii]onsar<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3725 0         0 s/(]*>[Ii]onsar<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3726             }
3727 485         1458 s/(?])([Ii]onsar<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
3728 485         1224 s/(?])([Ii]onsar<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
3729 485         1293 s/(?])([Ii]onsar<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
3730 485         1076 s/(?])([Ii]onsar<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
3731 485         1193 s/(?])([Ii]onsar<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
3732 485         1398 s/(?])([Ii]onsar<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
3733 485         948 s/(?])([Ii]onsar<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
3734 485         1101 s/(?])([Aa]n<\/T> tIosrael<\/N>)(?![<>])/$1<\/E>/g;
3735 485         1060 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Iosrael<\/N>)(?![<>])/$1<\/E>/g;
3736 485 50       1927 if (s/(?])([Ii]s<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
3737 0         0 s/(]*>[Ii]s<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3738             }
3739 485         1206 s/(?])(L\x{e1}<\/N> Coille<\/N>)(?![<>])/$1<\/E>/g;
3740 485         1302 s/(?])([Ll]\x{e1}mh<\/N> (?:]*gnt="y"[^>]*>(?:bhuic\x{e9}id|chaid\x{e9}il|bh\x{ed}se)<\/N>))(?![<>])/$1<\/E>/g;
3741 485         1566 s/(?])([Aa]n<\/T> (?:Laos|Leos\x{f3}ta|Lichtinst\x{e9}in|Lucsamburg)<\/N>)(?![<>])/$1<\/E>/g;
3742 485         1786 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Laos|Leos\x{f3}ta|Lichtinst\x{e9}in|Lucsamburg)<\/N>)(?![<>])/$1<\/E>/g;
3743 485 50       1505 if (s/(?])((?:Liob\x{e1}in|Laitvia|Liotu\x{e1}in)<\/N>)(?![<>])/$1<\/E>/g) {
3744 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3745 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3746 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3747             }
3748 485 50       1582 if (s/(?])((?:Liob\x{e1}ine|Laitvia|Liotu\x{e1}ine)<\/N>)(?![<>])/$1<\/E>/g) {
3749 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3750             }
3751 485 100       2416 if (s/(?])([Ll]e<\/S> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
3752 5         50 s/(]*>[Ll]e<\/S> <[A-DF-Z][^>]*>(?:bheith|bhur|chomh|thart|th\x{fa})<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  4         27  
3753             }
3754 485         1404 s/(?])([Ll]e<\/S> an<\/T>)(?![<>])/$1<\/E>/g;
3755 485         1130 s/(?])([Ll]e<\/S> na<\/T>)(?![<>])/$1<\/E>/g;
3756 485         1278 s/(?])([Ll]e<\/S> <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3757 485         1176 s/(?])([Ll]e<\/S> <[A-DF-Z][^>]*>ar<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3758 485         1184 s/(?])([Ll]e<\/S> <[A-DF-Z][^>]*>\x{e1}r<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3759 485         1129 s/(?])([Ll]e<\/S> n-\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
3760 485         1332 s/(?])([Ll]e<\/S> (?:<[ANPY][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[ANPY]>))(?![<>])/$1<\/E>/g;
3761 485         998 s/(?])([Ll]e<\/S> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
3762 485         1078 s/(?])([Ll]e<\/S> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
3763 485         1275 s/(?])([Ll]e<\/S> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3764 485 50       1784 if (s/(?])([Ll]e<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
3765 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3766 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3767             }
3768 485 100       2001 if (s/(?])([Ll]e<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
3769 1         11 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  1         6  
3770 1         6 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3771             }
3772 485 50       1774 if (s/(?])([Ll]e<\/S>

h[\x{c9}\x{e9}]<\/P>)(?![<>])/$1<\/E>/g) {

3773 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3774 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3775 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3776             }
3777 485 50       1600 if (s/(?])([Ll]e<\/S>

h[\x{cd}\x{ed}]<\/P>)(?![<>])/$1<\/E>/g) {

3778 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3779 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3780 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3781             }
3782 485 50       1625 if (s/(?])([Ll]e<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
3783 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3784 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3785             }
3786 485 50       1729 if (s/(?])([Ll]e<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
3787 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3788 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3789             }
3790 485 50       1574 if (s/(?])([Ll]e<\/S>

h[Ii]ad<\/P>)(?![<>])/$1<\/E>/g) {

3791 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3792 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3793 0         0 s/(]*>[Ll]e<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3794             }
3795 485         1443 s/(?])([Aa]n<\/T> (?:]*>leagadh<\/V>))(?![<>])/$1<\/E>/g;
3796 485         1248 s/(?])([Aa]g<\/S> (?:]*>leagadh<\/V>))(?![<>])/$1<\/E>/g;
3797 485         1017 s/(?])([Ll]e<\/S> (?:]*>leagadh<\/V>))(?![<>])/$1<\/E>/g;
3798 485         1101 s/(?])([Ll]eis<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3799 485 50       1806 if (s/(?])([Ll]eis<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3800 0         0 s/(]*>[Ll]eis<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3801             }
3802 485         1060 s/(?])([Ll]eis<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
3803 485 50       1557 if (s/(?])([Ll]ena<\/S> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3804 0         0 s/(]*>[Ll]ena<\/S> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3805 0         0 s/(]*>[Ll]ena<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3806             }
3807 485 50       1773 if (s/(?])([Ll]ena<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
3808 0         0 s/(]*>[Ll]ena<\/S> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3809             }
3810 485         1298 s/(?])([Ll]enar<\/S> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3811 485         1054 s/(?])([Ll]enar<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3812 485         1062 s/(?])([Ll]enar<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3813 485         1490 s/(?])([Ll]enar<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3814 485         1137 s/(?])([Ll]enar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3815 485         1240 s/(?])([Ll]enarb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3816 485         1338 s/(?])([Ll]enarbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3817 485         1145 s/(?])([Ll]enarbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3818 485         1001 s/(?])([Ll]enarbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3819 485         1215 s/(?])([Ll]en\x{e1}r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3820 485 100       1768 if (s/(?])([Ll]en\x{e1}r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
3821 1         3 s/(]*>[Ll]en\x{e1}r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3822             }
3823 485         1358 s/(?])([Aa]<\/D> [Ll]eoga<\/R>)(?![<>])/$1<\/E>/g;
3824 485 50       1848 if (s/(?])([Ll]eointe<\/N>)(?![<>])/$1<\/E>/g) {
3825 0         0 s/(]*>[Ll]eointe<\/N><\/E> f\x{e9}in<\/R>)/strip_errors($1);/eg;
  0         0  
3826             }
3827 485         1182 s/(?])([Ll]\x{ed}omh\x{e1}n<\/N> gr\x{e9}ine<\/N>)(?![<>])/$1<\/E>/g;
3828 485         1317 s/(?])([Aa]m<\/N> [Ll]oin<\/N>)(?![<>])/$1<\/E>/g;
3829 485 50       1667 if (s/(?])(Longfort<\/N>)(?![<>])/$1<\/E>/g) {
3830 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3831 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3832 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3833             }
3834 485 50       1651 if (s/(?])(Longfoirt<\/N>)(?![<>])/$1<\/E>/g) {
3835 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3836             }
3837 485         1512 s/(?])([Ll]orga<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3838 485         1229 s/(?])(na<\/T> luaithe<\/A>)(?![<>])/$1<\/E>/g;
3839 485         1464 s/(?])([Ll]\x{fa}b<\/N> (?:]*gnt="y"[^>]*>(?:phota|chorc\x{e1}in)<\/N>))(?![<>])/$1<\/E>/g;
3840 485         1254 s/(?])([Mm]\x{e1}<\/C> (?:]*t="coinn"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3841 485         1312 s/(?])([Mm]\x{e1}<\/C> (?:]*t="f\x{e1}ist"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3842 485 100       2101 if (s/(?])([Mm]\x{e1}<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
3843 4         38 s/(]*>[Mm]\x{e1}<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd](?:eir|\x{e9}ar)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         8  
3844 4         30 s/(]*>[Mm]\x{e1}<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd]\x{fa}(?:irt|ra[dm]ar|radh)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3845 4         23 s/(]*>[Mm]\x{e1}<\/C> (?:]*>[Tt]\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
3846 4         23 s/(]*>[Mm]\x{e1}<\/C> (?:]*>[Ff]ua(?:ir(?:ea[md]ar)?|rthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         8  
3847             }
3848 485         1203 s/(?])([Mm]\x{e1}<\/C> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
3849 485 50       1916 if (s/(?])([Mm]aidir<\/S>)(?![<>])/$1<\/E>/g) {
3850 0         0 s/(]*>[Mm]aidir<\/S><\/E> (?:<[DOS][^>]*>[Ll][^<]+<\/[DOS]>))/strip_errors($1);/eg;
  0         0  
3851             }
3852 485 50       1611 if (s/(?])([Mm]aille<\/S>)(?![<>])/$1<\/E>/g) {
3853 0         0 s/(]*>[Mm]aille<\/S><\/E> (?:<[DOS][^>]*>[Ll][^<]+<\/[DOS]>))/strip_errors($1);/eg;
  0         0  
3854             }
3855 485         1136 s/(?])([Aa]n<\/T> (?:Mhail\x{ed}|Mh\x{f3}saimb\x{ed}c)<\/N>)(?![<>])/$1<\/E>/g;
3856 485         1374 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Mhail\x{ed}|Mh\x{f3}saimb\x{ed}c)<\/N>)(?![<>])/$1<\/E>/g;
3857 485         1182 s/(?])([Aa]n<\/T> (?:Madagascar|Maenmar|M\x{e1}lta|Marac\x{f3}|Meicsiceo|Monac\x{f3})<\/N>)(?![<>])/$1<\/E>/g;
3858 485         1038 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Mhadagascar|Mhaenmar|Mh\x{e1}lta|Mharac\x{f3}|Mheicsiceo|Mhonac\x{f3})<\/N>)(?![<>])/$1<\/E>/g;
3859 485         1225 s/(?])([Mm]h?aistr\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
3860 485         1398 s/(?])([Mm]ar<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3861 485         1333 s/(?])([Mm]ar<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3862 485         1186 s/(?])([Mm]ar<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
3863 485         1214 s/(?])([Mm]ar<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
3864 485         1161 s/(?])((?:]*>[Mm]ara<\/N>) miste<\/A>)(?![<>])/$1<\/E>/g;
3865 485 50       1594 if (s/(?])((?:]*>[Mm]ara<\/N>) (?:]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3866 0         0 s/(]*>(?:]*>[Mm]ara<\/N>) (?:]*>at\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3867 0         0 s/([Nn]a<\/T> ]*>(?:]*>[Mm]ara<\/N>) (?:]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3868             }
3869 485 100       1722 if (s/(?])([Mm]\x{e1}s<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
3870 1         5 s/(]*>[Mm]\x{e1}s<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3871             }
3872 485         1521 s/(?])([Mm]h?\x{e9}ad<\/N>)(?![<>])/$1<\/E>/g;
3873 485         1409 s/(?])(Mh?e\x{e1}n<\/N> Fh?\x{f3}mhar<\/N>)(?![<>])/$1<\/E>/g;
3874 485 50       1769 if (s/(?])(Mh?e\x{e1}nmhuir<\/N>)(?![<>])/$1<\/E>/g) {
3875 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3876 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3877 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
3878             }
3879 485 50       1599 if (s/(?])(Mh?e\x{e1}nmhara<\/N>)(?![<>])/$1<\/E>/g) {
3880 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3881             }
3882 485         2635 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:mh?\x{e9}ar|h?ord\x{f3}g)<\/N>) (?:]*gnt="y"[^>]*>(?:choise|ghliomaigh|phort\x{e1}in)<\/N>))(?![<>])/$1<\/E>/g;
3883 485 100       1463 if (s/(?])((?:]*>measartha<\/A>) (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
3884 1         6 s/(]*>(?:]*>measartha<\/A>) [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3885             }
3886 485 50       1596 if (s/(?])((?:]*>Mhic<\/N>) (?:[BDFMPT][^Hh']|S[lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bhF)[^<]*<\/Y>)(?![<>])/$1<\/E>/g) {
3887 0         0 s/(]*>(?:]*>Mhic<\/N>) Dara<\/Y><\/E>)/strip_errors($1);/eg;
  0         0  
3888             }
3889 485         1123 s/(?])((?:]*>Mhic<\/N>) [CG][Hh][^<]+<\/Y>)(?![<>])/$1<\/E>/g;
3890 485         991 s/(?])(Mhig<\/Y> (?:[BDFMPT][^Hh']|S[lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bhF)[^<]*<\/Y>)(?![<>])/$1<\/E>/g;
3891 485         1192 s/(?])(Mhig<\/Y> [CG][Hh][^<]+<\/Y>)(?![<>])/$1<\/E>/g;
3892 485         1398 s/(?])([Mm]h?\x{ed}<\/N> [^<]+<\/T> (?:]*>(?:Ean\x{e1}ir|Fh?eabhra|Aibre\x{e1}i?n|I\x{fa}il|L\x{fa}nasa|Mh?e\x{e1}n|Dh?eireadh)<\/N>))(?![<>])/$1<\/E>/g;
3893 485         1449 s/(?])([Mm]h?\x{ed}<\/N> (?:]*>(?:Mh?\x{e1}rta|Bh?ealtaine|Mh?eithimh|Mh?eitheamh|Sh?amhain|Sh?amhna|Nollai?g)<\/N>))(?![<>])/$1<\/E>/g;
3894 485         1138 s/(?])([Mm]o<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3895 485         1356 s/(?])([Mm]o<\/D> <[A-DF-Z][^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3896 485 100       1915 if (s/(?])([Mm]h?\x{f3}rsheisear<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3897 1         4 s/(]*>[Mm]h?\x{f3}rsheisear<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3898             }
3899 485         1116 s/(?])([Mm]h?\x{f3}rsheisear<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
3900 485 50       1670 if (s/(?])([Mm]h?uin<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3901 0         0 s/(]*>[Mm]h?uin<\/N> mhairc<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3902             }
3903 485         1203 s/(?])([Mm]h?uin<\/N> mairc<\/N>)(?![<>])/$1<\/E>/g;
3904 485         1314 s/(?])([Mm]h?\x{fa}nadh<\/N>)(?![<>])/$1<\/E>/g;
3905 485         1564 s/(?])([Mm]ar<\/C> (?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3906 485 100       1798 if (s/(?])([Mm]ura<\/C> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3907 2         19 s/(]*>[Mm]ura<\/C> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
3908 2         13 s/(]*>[Mm]ura<\/C> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3909             }
3910 485         1693 s/(?])([Mm]ura<\/C> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
3911 485         1401 s/(?])([Mm]ura<\/C> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
3912 485         1308 s/(?])([Mm]ura<\/C> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3913 485         1549 s/(?])([Mm]ura<\/C> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3914 485         1306 s/(?])([Mm]urar?<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3915 485         1154 s/(?])([Mm]urar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3916 485 50       1588 if (s/(?])([Mm]ura<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
3917 0         0 s/(]*>[Mm]ura<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3918             }
3919 485         1641 s/(?])([Mm]urab<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3920 485 100       1730 if (s/(?])([Mm]urach<\/C> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g) {
3921 1         8 s/(]*>[Mm]urach<\/C> <[A-DF-Z][^>]*>(?:bheith|chomh|th\x{fa})<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         7  
3922             }
3923 485         1491 s/(?])([Mm]urach<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3924 485         1226 s/(?])([Mm]urach<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
3925 485         1130 s/(?])([Mm]urach<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
3926 485         1403 s/(?])([Mm]urar<\/C> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3927 485         1066 s/(?])([Mm]urar<\/C> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3928 485         1243 s/(?])([Mm]urar<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3929 485         1291 s/(?])([Mm]urarbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3930 485         1246 s/(?])([Mm]urarbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3931 485         1046 s/(?])([Mm]urarbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3932 485         1227 s/(?])([Nn]a<\/T> (?:]*pl="y" gnt="y"[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3933 485         1182 s/(?])([Nn]a<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3934 485         1158 s/(?])([Nn]a<\/T> (?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
3935 485         1318 s/(?])([Nn]a<\/T> (?:]*pl="y" gnt="n"[^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
3936 485         1144 s/(?])([Nn]a<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/Y>)(?![<>])/$1<\/E>/g;
3937 485         1575 s/(?])([Nn]a<\/T> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g;
3938 485         1626 s/(?])([Nn]a<\/T> (?:]*pl="y" gnt="n"[^>]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
3939 485         1140 s/(?])([Nn]a<\/T> tonna<\/N>)(?![<>])/$1<\/E>/g;
3940 485         1126 s/(?])([Nn]a<\/T> coilleadh<\/N>)(?![<>])/$1<\/E>/g;
3941 485 100       2731 if (s/(?])([Nn]a<\/T> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3942 1         3 s/(]*>na<\/T> Slua<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3943 1         4 s/(]*>na<\/T> bhF\x{e1}l<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3944             }
3945 485         1534 s/(?])([Nn]a<\/T> <[A-DF-Z][^>]*>aon<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3946 485         1094 s/(?])([Nn]a<\/T> <[A-DF-Z][^>]*>[Dd]h?\x{e1}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3947 485         1391 s/(?])([Nn]a<\/T> <[A-DF-Z][^>]*>(?:fiche|tr\x{ed}ocha|daichead|caoga|seasca|seacht\x{f3}|ocht\x{f3}|n\x{f3}cha)<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3948 485         1077 s/(?])([Nn]a<\/T> (?:m\x{ed}le|milli\x{fa}n)<\/A>)(?![<>])/$1<\/E>/g;
3949 485         1526 s/(?])([Nn]a<\/T> (?:tr\x{ed}|ceithre|c\x{fa}ig|s\x{e9}|seacht|ocht|naoi|deich)<\/A> <[A-DF-Z][^>]*>(?:g?ch?\x{e9}ad|mh?\x{ed}le|mh?illi\x{fa}n)<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3950 485         1265 s/(?])([Nn]a<\/T> hocht<\/A> <[A-DF-Z][^>]*>(?:g?ch?\x{e9}ad|mh?\x{ed}le|mh?illi\x{fa}n)<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3951 485 100       4594 if (s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/V>))(?![<>])/$1<\/E>/g) {
3952 3         17 s/(]*><[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/V><\/E>)/strip_errors($1);/eg;
  1         8  
3953 3         20 s/(]*><[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> (?:]*>at\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
3954             }
3955 485         1516 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> (?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/V>)(?![<>])/$1<\/E>/g;
3956 485 100       5857 if (s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3957 2         11 s/(]*><[A-DF-Z][^>]*>[Nn]\x{e1}<\/[A-DF-Z]> bheith<\/N><\/E>)/strip_errors($1);/eg;
  1         5  
3958             }
3959 485         1264 s/(?])([Nn]\x{e1}<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
3960 485         1225 s/(?])([Nn]\x{e1}<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
3961 485         1268 s/(?])([Nn]\x{e1}<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
3962 485 100       3045 if (s/(?])(<[A-DF-Z][^>]*>[Nn]ach<\/[A-DF-Z]> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
3963 3         27 s/(]*><[A-DF-Z][^>]*>[Nn]ach<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  3         18  
3964 3         10 s/(]*><[A-DF-Z][^>]*>[Nn]ach<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
3965             }
3966 485         2227 s/(?])(<[A-DF-Z][^>]*>[Nn]ach<\/[A-DF-Z]> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
3967 485 100       2004 if (s/(?])([Nn]ach<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
3968 1         5 s/(]*>[Nn]ach<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
3969             }
3970 485         1576 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) m[Bb]liain<\/N>)(?![<>])/$1<\/E>/g;
3971 485         1295 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) g[Cc]eann<\/N>)(?![<>])/$1<\/E>/g;
3972 485         1387 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) g[Cc]loigeann<\/N>)(?![<>])/$1<\/E>/g;
3973 485         1394 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) g[Cc]uairt<\/N>)(?![<>])/$1<\/E>/g;
3974 485         1112 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) bh[Ff]iche<\/N>)(?![<>])/$1<\/E>/g;
3975 485         1371 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) b[Pp]ingin<\/N>)(?![<>])/$1<\/E>/g;
3976 485         3513 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
3977 485         3422 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) [Ss]eachtain<\/N>)(?![<>])/$1<\/E>/g;
3978 485         1005 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) d[Tt]roigh<\/N>)(?![<>])/$1<\/E>/g;
3979 485         1323 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) n-ubh<\/N>)(?![<>])/$1<\/E>/g;
3980 485         919 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) n-uair<\/N>)(?![<>])/$1<\/E>/g;
3981 485         875 s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) n-orlach<\/N>)(?![<>])/$1<\/E>/g;
3982 485 50       2822 if (s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3983 0         0 s/(]*>(?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) (?:]*pl="y"[^>]*>(?:mbliana|gcinn|gcloigne|bhfichid|n-uaire|n-orla\x{ed}|dtroithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
3984             }
3985 485 50       3233 if (s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3986 0         0 s/(]*>(?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3987             }
3988 485 50       2263 if (s/(?])((?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
3989 0         0 s/(]*>(?:<[^\/Y][^>]*>[Nn]aoi<\/[^Y]>) (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
3990             }
3991 485         1447 s/(?])((?:]*>Naomh<\/N>) <[A-DF-Z][^>]*>[BCDFGMPST][Hh][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
3992 485 50       2061 if (s/(?])([Nn]aon\x{fa}r<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
3993 0         0 s/(]*>[Nn]aon\x{fa}r<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
3994             }
3995 485         1233 s/(?])([Nn]aon\x{fa}r<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
3996 485         1637 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}r<\/[A-DF-Z]> (?:]*t=".[^a][^s][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
3997 485         2477 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}r<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
3998 485         1537 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}r<\/[A-DF-Z]> (?:<[AN][^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/[AN]>))(?![<>])/$1<\/E>/g;
3999 485         1358 s/(?])([Nn]\x{e1}r<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4000 485         1402 s/(?])([Nn]\x{e1}r<\/V> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4001 485         1619 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{e1}r<\/[A-DF-Z]> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
4002 485         1305 s/(?])([Nn]\x{e1}rbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4003 485         995 s/(?])([Nn]\x{e1}rbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4004 485         992 s/(?])([Nn]\x{e1}rbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4005 485         946 s/(?])(athair<\/N> nimhe<\/N>)(?![<>])/$1<\/E>/g;
4006 485         1080 s/(?])([Aa]n<\/T> (?:Neipeal|Nicearagua)<\/N>)(?![<>])/$1<\/E>/g;
4007 485         1136 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Neipeal|Nicearagua)<\/N>)(?![<>])/$1<\/E>/g;
4008 485         1168 s/(?])([Aa]r<\/S> neoin<\/N>)(?![<>])/$1<\/E>/g;
4009 485         1168 s/(?])([Dd]ar<\/V> neoin<\/N>)(?![<>])/$1<\/E>/g;
4010 485         1129 s/(?])([Nn]eoin<\/N> bheag<\/A>)(?![<>])/$1<\/E>/g;
4011 485         1295 s/(?])(N\x{ed}<\/Y> (?:[BCDFGMPT][^Hh']|S[lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bhF)[^<]*<\/Y>)(?![<>])/$1<\/E>/g;
4012 485         1401 s/(?])([Nn]\x{ed}<\/U> (?:]*t="caite"[^>]*>[Ff]ua(?:ir(?:ea[md]ar)?|rthas)<\/V>))(?![<>])/$1<\/E>/g;
4013 485 100       3135 if (s/(?])(<[A-DF-Z][^>]*>[Nn]\x{ed}<\/[A-DF-Z]> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4014 6         49 s/(]*><[A-DF-Z][^>]*>[Nn]\x{ed}<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:bhfuai?r|d\x{fa}i?r|rai?bh|fhac|dheach|dhearna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  5         24  
4015             }
4016 485 100       2019 if (s/(?])([Nn]\x{ed}<\/U> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
4017 4         26 s/(]*>[Nn]\x{ed}<\/U> (?:]*>bhfaigh[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4018 4         13 s/(]*>[Nn]\x{ed}<\/U> ba<\/V><\/E>)/strip_errors($1);/eg;
  0         0  
4019 4         24 s/(]*>[Nn]\x{ed}<\/U> (?:]*>[Tt]\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4020 4         18 s/(]*>[Nn]\x{ed}<\/U> (?:]*t="caite"[^>]*>(?:bhfuai?r|d\x{fa}i?r|rai?bh|fhac|dheach|dhearna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         4  
4021 4         24 s/(]*>[Nn]\x{ed}<\/U> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd](?:eir|\x{e9}ar)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
4022             }
4023 485         1786 s/(?])([Nn]\x{ed}<\/V> (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/P>))(?![<>])/$1<\/E>/g;
4024 485         1517 s/(?])([Nn]\x{ed}<\/V> fhuil<\/N>)(?![<>])/$1<\/E>/g;
4025 485 100       2308 if (s/(?])([Nn]\x{ed}<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
4026 2         7 s/(]*>[Nn]\x{ed}<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4027             }
4028 485 100       1854 if (s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4029 4         25 s/(]*>[Nn]\x{ed}(?: ?ba|b)<\/R> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  3         14  
4030             }
4031 485         1366 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> gh?aiste<\/N>)(?![<>])/$1<\/E>/g;
4032 485 100       2012 if (s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R>)(?![<>])/$1<\/E>/g) {
4033 5         25 s/(]*>[Nn]\x{ed}(?: ?ba|b)<\/R><\/E> [^<]+<\/A>)/strip_errors($1);/eg;
  3         10  
4034             }
4035 485         1365 s/(?])([Nn]\x{ed}b<\/R> (?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/A>)(?![<>])/$1<\/E>/g;
4036 485         1149 s/(?])([Nn]\x{ed}ba<\/R> (?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/A>)(?![<>])/$1<\/E>/g;
4037 485         1143 s/(?])([Nn]\x{ed}ba<\/R> (?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>)(?![<>])/$1<\/E>/g;
4038 485         1335 s/(?])(Ni[cg]<\/Y> (?:[BDFMPT][^Hh']|S[lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bhF)[^<]*<\/Y>)(?![<>])/$1<\/E>/g;
4039 485         1510 s/(?])(Ni[cg]<\/Y> [CG][Hh][^<]+<\/Y>)(?![<>])/$1<\/E>/g;
4040 485 50       1653 if (s/(?])((?:Nig\x{e9}ir|Nua-Sh\x{e9}alainn)<\/N>)(?![<>])/$1<\/E>/g) {
4041 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4042 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4043 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4044             }
4045 485 50       1847 if (s/(?])((?:Nig\x{e9}ire|Nua-Sh\x{e9}alainne)<\/N>)(?![<>])/$1<\/E>/g) {
4046 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4047             }
4048 485         1431 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{ed}or<\/[A-DF-Z]> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4049 485         3091 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{ed}or<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
4050 485         1410 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{ed}or<\/[A-DF-Z]> (?:<[AN][^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/[AN]>))(?![<>])/$1<\/E>/g;
4051 485         1343 s/(?])([Nn]\x{ed}or<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4052 485         1212 s/(?])([Nn]\x{ed}or<\/V> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4053 485         1154 s/(?])(<[A-DF-Z][^>]*>[Nn]\x{ed}or<\/[A-DF-Z]> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
4054 485         1228 s/(?])([Nn]\x{ed}orbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4055 485         1220 s/(?])([Nn]\x{ed}orbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4056 485         1740 s/(?])([Nn]\x{ed}orbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4057 485 100       1699 if (s/(?])([Nn]\x{ed}os<\/R> (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4058 3         23 s/(]*>[Nn]\x{ed}os<\/R> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  3         16  
4059             }
4060 485         1179 s/(?])([Nn]\x{ed}os<\/R> gaiste<\/N>)(?![<>])/$1<\/E>/g;
4061 485 100       2937 if (s/(?])([Nn]\x{ed}os<\/R>)(?![<>])/$1<\/E>/g) {
4062 3         21 s/(]*>[Nn]\x{ed}os<\/R><\/E> [^<]+<\/A>)/strip_errors($1);/eg;
  3         10  
4063             }
4064 485         1238 s/(?])(\x{d3}<\/Y> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/Y>)(?![<>])/$1<\/E>/g;
4065 485 100       2135 if (s/(?])([\x{d3}\x{f3}]<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
4066 3         24 s/(]*>[\x{d3}\x{f3}]<\/C> (?:]*>[Tt]\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  1         10  
4067 3         20 s/(]*>[\x{d3}\x{f3}]<\/C> (?:]*>[Ff]ua(?:ir(?:ea[md]ar)?|rthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4068 3         16 s/(]*>[\x{d3}\x{f3}]<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd](?:eir|\x{e9}ar)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4069 3         17 s/(]*>[\x{d3}\x{f3}]<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>[Dd]\x{fa}(?:irt|ra[dm]ar|radh)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4070             }
4071 485         1657 s/(?])([\x{d3}\x{f3}]<\/S> n-\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
4072 485 100       2124 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
4073 1         5 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[Ff]ud [Ff]ad<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4074             }
4075 485         1560 s/(?])([\x{d3}\x{f3}]<\/S> an<\/T>)(?![<>])/$1<\/E>/g;
4076 485         1052 s/(?])((?:<[CS][^>]*>[\x{d3}\x{f3}]<\/[CS]>) is<\/V>)(?![<>])/$1<\/E>/g;
4077 485 50       1797 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
4078 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4079 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4080             }
4081 485 50       1757 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
4082 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4083 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4084             }
4085 485 50       2058 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g) {
4086 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4087 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4088 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4089             }
4090 485 50       1895 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g) {
4091 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4092 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4093 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4094             }
4095 485 50       1583 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
4096 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4097 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4098             }
4099 485 50       1827 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
4100 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4101 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4102             }
4103 485 50       2327 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g) {
4104 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4105 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4106 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4107             }
4108 485 50       1613 if (s/(?])([\x{d3}\x{f3}]<\/S> (?:]*>sin<\/P>))(?![<>])/$1<\/E>/g) {
4109 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>sin<\/P>)<\/E> go dt\x{ed}<\/S>)/strip_errors($1);/eg;
  0         0  
4110 0         0 s/(]*>[\x{d3}\x{f3}]<\/S> (?:]*>sin<\/P>)<\/E> (?:chuig|go)<\/S>)/strip_errors($1);/eg;
  0         0  
4111             }
4112 485         1344 s/(?])([\x{d3}\x{f3}]<\/S> sna<\/S>)(?![<>])/$1<\/E>/g;
4113 485         1168 s/(?])([Oo]bann<\/V>)(?![<>])/$1<\/E>/g;
4114 485         1485 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> m[Bb]liain<\/N>)(?![<>])/$1<\/E>/g;
4115 485         1440 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> g[Cc]eann<\/N>)(?![<>])/$1<\/E>/g;
4116 485         1645 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> g[Cc]loigeann<\/N>)(?![<>])/$1<\/E>/g;
4117 485         1382 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> g[Cc]uairt<\/N>)(?![<>])/$1<\/E>/g;
4118 485         1323 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> bh[Ff]iche<\/N>)(?![<>])/$1<\/E>/g;
4119 485         1275 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> <[A-DF-Z][^>]*>pl="n"<\/[A-DF-Z]> <[A-DF-Z][^>]*>gnt="n"<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4120 485         1372 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> b[Pp]ingin<\/N>)(?![<>])/$1<\/E>/g;
4121 485         3694 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
4122 485         3372 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> [Ss]eachtain<\/N>)(?![<>])/$1<\/E>/g;
4123 485         1333 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> d[Tt]roigh<\/N>)(?![<>])/$1<\/E>/g;
4124 485         1094 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> n-ubh<\/N>)(?![<>])/$1<\/E>/g;
4125 485         1001 s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> n-uair<\/N>)(?![<>])/$1<\/E>/g;
4126 485 50       3212 if (s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4127 0         0 s/(]*><[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> (?:]*pl="y"[^>]*>(?:mbliana|gcinn|gcloigne|bhfichid|n-uaire|n-orla\x{ed}|dtroithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4128             }
4129 485 50       3135 if (s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4130 0         0 s/(]*><[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4131             }
4132 485 50       1996 if (s/(?])(<[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4133 0         0 s/(]*><[A-DF-Z][^>]*>h?[Oo]cht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4134             }
4135 485 50       2194 if (s/(?])([Oo]chtar<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4136 0         0 s/(]*>[Oo]chtar<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4137             }
4138 485         1314 s/(?])([Oo]chtar<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
4139 485         1479 s/(?])([Dd]'aon<\/N> (?:uaimh?|\x{fa}im)<\/N>)(?![<>])/$1<\/E>/g;
4140 485         976 s/(?])((?:]*>[Oo]\x{ed}che<\/N>) D\x{e9} [^<]+<\/N>)(?![<>])/$1<\/E>/g;
4141 485         1143 s/(?])([Aa]g<\/S> oileadh<\/V>)(?![<>])/$1<\/E>/g;
4142 485         1083 s/(?])([Aa]n<\/T> oiread<\/N> agus<\/C>)(?![<>])/$1<\/E>/g;
4143 485         995 s/(?])([Aa]n<\/T> oiread<\/N> is<\/V>:)(?![<>])/$1<\/E>/g;
4144 485 50       3327 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>(?:[mdnh]?'?Ollainn|[mdnh]?'?Ostair)<\/N>))(?![<>])/$1<\/E>/g) {
4145 0         0 s/([Aa]n<\/T> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4146 0         0 s/((?:]*>San<\/N>) ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4147 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4148 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4149             }
4150 485 50       2289 if (s/(?])((?:]*pl="n" gnt="y" gnd="f"[^>]*>(?:[mdnh]?'?Ollainne|[mdnh]?'?Ostaire)<\/N>))(?![<>])/$1<\/E>/g) {
4151 0         0 s/([Nn]a<\/T> ]*>(?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4152             }
4153 485         1155 s/(?])([Aa]n<\/T> tOman<\/N>)(?![<>])/$1<\/E>/g;
4154 485         1168 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Oman<\/N>)(?![<>])/$1<\/E>/g;
4155 485         1301 s/(?])([\x{d3}\x{f3}]n<\/S> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
4156 485 50       2117 if (s/(?])([\x{d3}\x{f3}]n<\/S> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4157 0         0 s/(]*>[\x{d3}\x{f3}]n<\/S> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4158             }
4159 485         1479 s/(?])([\x{d3}\x{f3}]n<\/S> (?:]*>(?:n[Dd]|d[Tt]|[DdSsTt][Hh])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4160 485         1292 s/(?])([\x{d3}\x{f3}]n<\/S> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
4161 485         1666 s/(?])([\x{d3}\x{f3}]n?<\/S> <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4162 485         1666 s/(?])([\x{d3}\x{f3}]n?<\/S> <[A-DF-Z][^>]*>ar<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4163 485         1722 s/(?])([\x{d3}\x{f3}]n?<\/S> <[A-DF-Z][^>]*>\x{e1}r<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4164 485 50       1669 if (s/(?])([\x{d3}\x{f3}]na<\/S> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4165 0         0 s/(]*>[\x{d3}\x{f3}]na<\/S> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4166 0         0 s/(]*>[\x{d3}\x{f3}]na<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4167             }
4168 485 50       3259 if (s/(?])([\x{d3}\x{f3}]na<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
4169 0         0 s/(]*>[\x{d3}\x{f3}]na<\/S> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4170             }
4171 485         1369 s/(?])([\x{d3}\x{f3}]nar<\/S> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4172 485         1028 s/(?])([\x{d3}\x{f3}]nar<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
4173 485         1102 s/(?])([\x{d3}\x{f3}]nar<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
4174 485         1614 s/(?])([\x{d3}\x{f3}]nar<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4175 485         1203 s/(?])([\x{d3}\x{f3}]nar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4176 485         1181 s/(?])([\x{d3}\x{f3}]narb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4177 485         6210 s/(?])([\x{d3}\x{f3}]narbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4178 485         1189 s/(?])([\x{d3}\x{f3}]narbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4179 485         1326 s/(?])([\x{d3}\x{f3}]narbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4180 485         1237 s/(?])([\x{d3}\x{f3}]n\x{e1}r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4181 485 100       1936 if (s/(?])([\x{d3}\x{f3}]n\x{e1}r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
4182 1         5 s/(]*>[\x{d3}\x{f3}]n\x{e1}r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4183             }
4184 485 50       1973 if (s/(?])((?:]*>ortha<\/N>))(?![<>])/$1<\/E>/g) {
4185 0         0 s/(]*>(?:]*>ortha<\/N>)<\/E> (?:]*>dra\x{ed}ochta<\/N>))/strip_errors($1);/eg;
  0         0  
4186 0         0 s/([^<]+<\/T> ]*>(?:]*>ortha<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4187             }
4188 485 100       4344 if (s/(?])(<[A-DF-Z][^>]*>[Oo]s<\/[A-DF-Z]> (?:<[^\/Y][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^Y]>))(?![<>])/$1<\/E>/g) {
4189 2         8 s/(]*><[A-DF-Z][^>]*>[Oo]s<\/[A-DF-Z]> <[A-DF-Z][^>]*>bhur<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
4190             }
4191 485 50       1798 if (s/(?])([\x{d3}\x{f3}]s<\/V> (?:<[AN][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[AN]>))(?![<>])/$1<\/E>/g) {
4192 0         0 s/(]*>[\x{d3}\x{f3}]s<\/V> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4193             }
4194 485         1415 s/(?])([\x{d3}\x{f3}]s<\/V> (?:coinne|comhair)<\/N>)(?![<>])/$1<\/E>/g;
4195 485         1084 s/(?])([\x{d3}\x{f3}]s<\/V> cionn<\/N>)(?![<>])/$1<\/E>/g;
4196 485         1133 s/(?])([\x{d3}\x{f3}]s<\/V> [^<]+<\/D>)(?![<>])/$1<\/E>/g;
4197 485         1170 s/(?])([\x{d3}\x{f3}]s<\/V> (?:ard|\x{ed}seal)<\/N>)(?![<>])/$1<\/E>/g;
4198 485         1281 s/(?])([Oo]s<\/S> rud<\/N>)(?![<>])/$1<\/E>/g;
4199 485 50       2602 if (s/(?])((?:b?Ph?acast\x{e1}in|b?Ph?alaist\x{ed}n|b?Ph?ortaing\x{e9}il|b?Ph?olainn)<\/N>)(?![<>])/$1<\/E>/g) {
4200 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4201 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4202 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4203             }
4204 485 50       1883 if (s/(?])((?:b?Ph?acast\x{e1}ine|b?Ph?alaist\x{ed}ne|b?Ph?ortaing\x{e9}ile|b?Ph?olainne)<\/N>)(?![<>])/$1<\/E>/g) {
4205 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4206             }
4207 485         1050 s/(?])([Aa]n<\/T> (?:Panama|Paragua|Peiri\x{fa})<\/N>)(?![<>])/$1<\/E>/g;
4208 485         1070 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Panama|Paragua|Peiri\x{fa})<\/N>)(?![<>])/$1<\/E>/g;
4209 485         1232 s/(?])((?:]*>[Pp]\x{e9}<\/P>) (?:]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/P>))(?![<>])/$1<\/E>/g;
4210 485         5773 s/(?])(<[A-DF-Z][^>]*>[Pp]h?\x{e9}ire<\/[A-DF-Z]> (?:]*gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4211 485         1054 s/(?])(<[A-DF-Z][^>]*>[Pp]h?\x{e9}ire<\/[A-DF-Z]> (?:]*pl="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4212 485         1373 s/(?])([Aa]n<\/T> (?:]*>[Pp]icti\x{fa}ir<\/N>))(?![<>])/$1<\/E>/g;
4213 485         1094 s/(?])(b?[Pp]h?l\x{e9}<\/N> r\x{e1}ca<\/N>)(?![<>])/$1<\/E>/g;
4214 485         4924 s/(?])(b?[Pp]h?l\x{e9}<\/N> seam<\/N>)(?![<>])/$1<\/E>/g;
4215 485         1116 s/(?])(b?[Pp]h?\x{f3}ire<\/N>)(?![<>])/$1<\/E>/g;
4216 485         1425 s/(?])([Aa]n<\/T> Port\x{f3}<\/N> R\x{ed}ce<\/N>)(?![<>])/$1<\/E>/g;
4217 485         1496 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Phort\x{f3}<\/N> R\x{ed}ce<\/N>)(?![<>])/$1<\/E>/g;
4218 485         1233 s/(?])([Gg]ach<\/A> r\x{e1}th<\/N>)(?![<>])/$1<\/E>/g;
4219 485 50       1602 if (s/(?])((?:]*>r\x{e9}as\x{fa}nta<\/A>) (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4220 0         0 s/(]*>(?:]*>r\x{e9}as\x{fa}nta<\/A>) [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4221             }
4222 485         1158 s/(?])([Aa]n<\/T> [Rr]\x{e9}idh<\/A>)(?![<>])/$1<\/E>/g;
4223 485         888 s/(?])([Rr]\x{e9}im<\/N> [Bb]hia<\/N>)(?![<>])/$1<\/E>/g;
4224 485         1355 s/(?])((?:<[DST][^>]*>[^<]+<\/[DST]>) (?:]*>riaradh<\/V>))(?![<>])/$1<\/E>/g;
4225 485         1264 s/(?])((?:[Rr]ogha|[Rr]inn)<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4226 485         1386 s/(?])([Rr]oimh<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
4227 485         1080 s/(?])([Rr]oimh<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4228 485 50       2087 if (s/(?])([Rr]oimh<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4229 0         0 s/(]*>[Rr]oimh<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4230             }
4231 485         1244 s/(?])([Rr]oimh<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
4232 485 50       1610 if (s/(?])([Rr]oimh<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
4233 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4234 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4235             }
4236 485 50       1543 if (s/(?])([Rr]oimh<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
4237 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4238 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4239             }
4240 485 50       1942 if (s/(?])([Rr]oimh<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g) {
4241 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4242 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4243 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4244             }
4245 485 50       2068 if (s/(?])([Rr]oimh<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g) {
4246 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4247 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4248 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4249             }
4250 485 50       1563 if (s/(?])([Rr]oimh<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
4251 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4252 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4253             }
4254 485 50       1566 if (s/(?])([Rr]oimh<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
4255 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4256 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4257             }
4258 485 50       1442 if (s/(?])([Rr]oimh<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g) {
4259 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4260 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4261 0         0 s/(]*>[Rr]oimh<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4262             }
4263 485 50       1806 if (s/(?])((?:R\x{f3}imh|R\x{f3}m\x{e1}in|R\x{fa}is)<\/N>)(?![<>])/$1<\/E>/g) {
4264 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4265 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4266 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4267             }
4268 485 50       3928 if (s/(?])((?:R\x{f3}imhe|R\x{f3}m\x{e1}ine|R\x{fa}ise)<\/N>)(?![<>])/$1<\/E>/g) {
4269 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4270             }
4271 485 50       4383 if (s/(?])([Rr]uac\x{e1}n<\/N>)(?![<>])/$1<\/E>/g) {
4272 0         0 s/(]*>[Rr]uac\x{e1}n<\/N><\/E> caill\x{ed}<\/N>)/strip_errors($1);/eg;
  0         0  
4273 0         0 s/(]*>[Rr]uac\x{e1}n<\/N><\/E> m\x{f3}r<\/A> caill\x{ed}<\/N>)/strip_errors($1);/eg;
  0         0  
4274             }
4275 485         1293 s/(?])([Aa]n<\/T> Ruanda<\/N>)(?![<>])/$1<\/E>/g;
4276 485         1271 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> Ruanda<\/N>)(?![<>])/$1<\/E>/g;
4277 485         1296 s/(?])(Ruis<\/N>)(?![<>])/$1<\/E>/g;
4278 485         1057 s/(?])(Ruise<\/N>)(?![<>])/$1<\/E>/g;
4279 485         1478 s/(?])([Ss]a<\/S> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4280 485         1371 s/(?])([Ss]a<\/S> <[A-DF-Z][^>]*>n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4281 485         1107 s/(?])([Ss]a<\/S> <[A-DF-Z][^>]*>(?:[BbCcFfGgMmPp][^Hh']|bh[fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4282 485         2468 s/(?])([Ss]a<\/S> (?:]*>(?:n[Dd]|d[Tt]|[DdSsTt][Hh])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4283 485         1266 s/(?])([Ss]a<\/S> [Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}h][^<]+<\/N>)(?![<>])/$1<\/E>/g;
4284 485         1347 s/(?])([Ss]a<\/S> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4285 485         1346 s/(?])([Ss]a<\/S> [Nn]a<\/T>)(?![<>])/$1<\/E>/g;
4286 485         1135 s/(?])([Ss]h?ail<\/N> chuach<\/N>)(?![<>])/$1<\/E>/g;
4287 485         999 s/(?])([Ss]h?ail<\/N> chuaiche<\/N>)(?![<>])/$1<\/E>/g;
4288 485 50       3044 if (s/(?])((?:t?Sh?am\x{e1}ir|t?Sh?eap\x{e1}in|t?S\x{ed}n|t?Sh?iria|t?Sh?l\x{f3}iv\x{e9}in|t?Sh?om\x{e1}il|t?Sh?ualainn)<\/N>)(?![<>])/$1<\/E>/g) {
4289 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4290 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4291 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4292             }
4293 485 50       2037 if (s/(?])((?:t?Sh?am\x{e1}ire|t?Sh?eap\x{e1}ine|t?Sh?\x{ed}ne|t?Sh?iria|t?Sh?l\x{f3}iv\x{e9}ine|t?Sh?om\x{e1}ile|t?Sh?ualainne)<\/N>)(?![<>])/$1<\/E>/g) {
4294 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4295             }
4296 485         1071 s/(?])([Nn]a<\/T> samhailteacha<\/A>)(?![<>])/$1<\/E>/g;
4297 485         1201 s/(?])([Aa]n<\/T> (?:Sam\x{f3}|Sasana|Sead|Siarra|Singeap\x{f3}r|Suranam)<\/N>)(?![<>])/$1<\/E>/g;
4298 485         1394 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Sam\x{f3}|Sasana|Sead|Siarra|Singeap\x{f3}r|Suranam)<\/N>)(?![<>])/$1<\/E>/g;
4299 485         1496 s/(?])(San<\/N> <[A-DF-Z][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4300 485         1374 s/(?])([Ss]an<\/S> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4301 485 100       1668 if (s/(?])([Ss]an<\/S> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
4302 2         17 s/(]*>[Ss]an<\/S> <[A-DF-Z][^>]*>(?:80|[0-9]?[18]|1?8[0-9][0-9][0-9]*)\x{fa}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  1         9  
4303             }
4304 485         1297 s/(?])((?:]*>[Ss]coir<\/V>) \x{f3}n?<\/S>)(?![<>])/$1<\/E>/g;
4305 485         1413 s/(?])([Aa]g<\/S> scr\x{ed}obhadh<\/V>)(?![<>])/$1<\/E>/g;
4306 485         1325 s/(?])([Ss]\x{e9}<\/A> <[A-DF-Z][^>]*>uaire?<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4307 485 100       1872 if (s/(?])([Ss]h?\x{e9}<\/A> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
4308 1         6 s/(]*>[Ss]h?\x{e9}<\/A> (?:]*>(?:[Bb]liana|[Cc]inn|[Cc]loigne|[Cc]uarta|[Ff]ichid|[Pp]ingine|[Ss]eachtaine|[Tt]roithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4309             }
4310 485         1911 s/(?])([Ss]\x{e9}<\/A> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
4311 485         1719 s/(?])([Ss]h\x{e9}<\/A> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
4312 485 50       1845 if (s/(?])([Ss]h?\x{e9}<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4313 0         0 s/(]*>[Ss]h?\x{e9}<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4314             }
4315 485 50       2407 if (s/(?])([Ss]h?\x{e9}<\/A> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4316 0         0 s/(]*>[Ss]h?\x{e9}<\/A> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4317             }
4318 485         1302 s/(?])([Ss]h?\x{e9}<\/A> [Bb]hliain<\/N>)(?![<>])/$1<\/E>/g;
4319 485         1130 s/(?])([Ss]h?\x{e9}<\/A> [Cc]heann<\/N>)(?![<>])/$1<\/E>/g;
4320 485         1077 s/(?])([Ss]h?\x{e9}<\/A> [Cc]hloigeann<\/N>)(?![<>])/$1<\/E>/g;
4321 485         957 s/(?])([Ss]h?\x{e9}<\/A> [Cc]huairt<\/N>)(?![<>])/$1<\/E>/g;
4322 485         1256 s/(?])([Ss]h?\x{e9}<\/A> [Ff]hiche<\/N>)(?![<>])/$1<\/E>/g;
4323 485         1016 s/(?])([Ss]h?\x{e9}<\/A> [Oo]rlach<\/N>)(?![<>])/$1<\/E>/g;
4324 485         917 s/(?])([Ss]h?\x{e9}<\/A> [Pp]hingin<\/N>)(?![<>])/$1<\/E>/g;
4325 485         994 s/(?])([Ss]h?\x{e9}<\/A> [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
4326 485         1058 s/(?])([Ss]h?\x{e9}<\/A> [Ss]heachtain<\/N>)(?![<>])/$1<\/E>/g;
4327 485         1437 s/(?])([Ss]h?\x{e9}<\/A> [Tt]hroigh<\/N>)(?![<>])/$1<\/E>/g;
4328 485         968 s/(?])([Ss]h?\x{e9}<\/A> [Uu]bh<\/N>)(?![<>])/$1<\/E>/g;
4329 485 50       1934 if (s/(?])([Ss]h?\x{e9}<\/A> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4330 0         0 s/(]*>[Ss]h?\x{e9}<\/A> (?:]*pl="y"[^>]*>(?:bliana|cinn|cloigne|fichid|huaire|horla\x{ed}|troithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4331             }
4332 485 100       2130 if (s/(?])([Ss]eachas<\/S> (?:<[NV][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[NV]>))(?![<>])/$1<\/E>/g) {
4333 2         12 s/(]*>[Ss]eachas<\/S> bheith<\/N><\/E>)/strip_errors($1);/eg;
  1         9  
4334             }
4335 485         1291 s/(?])([Ss]eachas<\/S> [Aa]n<\/T> [aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)(?![<>])/$1<\/E>/g;
4336 485         1153 s/(?])([Ss]eachas<\/S> [Aa]n<\/T> (?:[Aa]on\x{fa}?|[Oo]cht(?:[\x{f3}\x{fa}]|\x{f3}d\x{fa})?)<\/A>)(?![<>])/$1<\/E>/g;
4337 485         1517 s/(?])([Ss]eachas<\/S> an<\/T> (?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)(?![<>])/$1<\/E>/g;
4338 485         1513 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> m[Bb]liain<\/N>)(?![<>])/$1<\/E>/g;
4339 485         1442 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> g[Cc]eann<\/N>)(?![<>])/$1<\/E>/g;
4340 485         1616 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> g[Cc]loigeann<\/N>)(?![<>])/$1<\/E>/g;
4341 485         1122 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> g[Cc]uairt<\/N>)(?![<>])/$1<\/E>/g;
4342 485         1494 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> bh[Ff]iche<\/N>)(?![<>])/$1<\/E>/g;
4343 485         1202 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> n-orlach<\/N>)(?![<>])/$1<\/E>/g;
4344 485         1294 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> b[Pp]ingin<\/N>)(?![<>])/$1<\/E>/g;
4345 485         3351 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> [Ss]cilling<\/N>)(?![<>])/$1<\/E>/g;
4346 485         3348 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> [Ss]eachtain<\/N>)(?![<>])/$1<\/E>/g;
4347 485         1112 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> d[Tt]roigh<\/N>)(?![<>])/$1<\/E>/g;
4348 485         1158 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> n-ubh<\/N>)(?![<>])/$1<\/E>/g;
4349 485         997 s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> n-uair<\/N>)(?![<>])/$1<\/E>/g;
4350 485 50       1916 if (s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4351 0         0 s/(]*><[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> (?:]*pl="y"[^>]*>(?:mbliana|gcinn|gcloigne|bhfichid|n-uaire|n-orla\x{ed}|dtroithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4352 0         0 s/(]*><[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> gc\x{fa}raim\x{ed}<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4353             }
4354 485 50       1993 if (s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4355 0         0 s/(]*><[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4356             }
4357 485 50       1773 if (s/(?])(<[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4358 0         0 s/(]*><[A-DF-Z][^>]*>[Ss]h?eacht<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4359             }
4360 485 50       2046 if (s/(?])([Ss]h?eachtar<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4361 0         0 s/(]*>[Ss]h?eachtar<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4362             }
4363 485         1166 s/(?])([Ss]h?eachtar<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
4364 485 50       1888 if (s/(?])([Ss]h?eisear<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4365 0         0 s/(]*>[Ss]h?eisear<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4366             }
4367 485         1320 s/(?])([Ss]h?eisear<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
4368 485         2647 s/(?])((?:<[^\/V][^>]*>[^<]+<\/[^V]>) (?:]*>[Ss]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4369 485         1207 s/(?])([^<]+<\/V> (?:]*>[Ss]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4370 485         1814 s/(?])((?:]* p="n"[^>]*>[^<]+<\/V>) (?:]*>[Ss]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4371 485         1124 s/(?])((?:<[^\/V][^>]*>[^<]+<\/[^V]>) (?:]*>[Ss]eisean<\/P>))(?![<>])/$1<\/E>/g;
4372 485         1282 s/(?])([^<]+<\/V> (?:]*>[Ss]eisean<\/P>))(?![<>])/$1<\/E>/g;
4373 485         1018 s/(?])((?:]* p="n"[^>]*>[^<]+<\/V>) (?:]*>[Ss]eisean<\/P>))(?![<>])/$1<\/E>/g;
4374 485         1281 s/(?])((?:<[^\/V][^>]*>[^<]+<\/[^V]>) (?:]*>[Ss]\x{ed}<\/P>))(?![<>])/$1<\/E>/g;
4375 485         1240 s/(?])([^<]+<\/V> (?:]*>[Ss]\x{ed}<\/P>))(?![<>])/$1<\/E>/g;
4376 485         1428 s/(?])((?:]* p="n"[^>]*>[^<]+<\/V>) (?:]*>[Ss]\x{ed}<\/P>))(?![<>])/$1<\/E>/g;
4377 485         1098 s/(?])((?:<[^\/V][^>]*>[^<]+<\/[^V]>) (?:]*>[Ss]ise<\/P>))(?![<>])/$1<\/E>/g;
4378 485         1092 s/(?])([^<]+<\/V> (?:]*>[Ss]ise<\/P>))(?![<>])/$1<\/E>/g;
4379 485         1449 s/(?])((?:]* p="n"[^>]*>[^<]+<\/V>) (?:]*>[Ss]ise<\/P>))(?![<>])/$1<\/E>/g;
4380 485         1651 s/(?])((?:<[^\/V][^>]*>[^<]+<\/[^V]>) (?:]*>[Ss]iad<\/P>))(?![<>])/$1<\/E>/g;
4381 485         1190 s/(?])([^<]+<\/V> (?:]*>[Ss]iad<\/P>))(?![<>])/$1<\/E>/g;
4382 485         1741 s/(?])((?:]* p="n"[^>]*>[^<]+<\/V>) (?:]*>[Ss]iad<\/P>))(?![<>])/$1<\/E>/g;
4383 485         1162 s/(?])((?:<[^\/V][^>]*>[^<]+<\/[^V]>) (?:]*>[Ss]iadsan<\/P>))(?![<>])/$1<\/E>/g;
4384 485         1233 s/(?])([^<]+<\/V> (?:]*>[Ss]iadsan<\/P>))(?![<>])/$1<\/E>/g;
4385 485         1388 s/(?])((?:]* p="n"[^>]*>[^<]+<\/V>) (?:]*>[Ss]iadsan<\/P>))(?![<>])/$1<\/E>/g;
4386 485 50       1867 if (s/(?])((?:]*>Sile<\/N>))(?![<>])/$1<\/E>/g) {
4387 0         0 s/(na<\/T> ]*>(?:]*>Sile<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4388             }
4389 485         1205 s/(?])(s\x{ed}nte<\/A> fada<\/A>)(?![<>])/$1<\/E>/g;
4390 485         1394 s/(?])([Ss]na<\/S> (?:]*pl="y" gnt="n"[^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))(?![<>])/$1<\/E>/g;
4391 485         1682 s/(?])([Ss]na<\/S> (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4392 485         1870 s/(?])([Ss]na<\/S> (?:<[^\/AY][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/[^AY]>))(?![<>])/$1<\/E>/g;
4393 485         1154 s/(?])([Ss]na<\/S> <[A-DF-Z][^>]*>h?aon<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4394 485         1152 s/(?])([Ss]na<\/S> <[A-DF-Z][^>]*>[Dd]h?\x{e1}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4395 485         1375 s/(?])([Ss]na<\/S> <[A-DF-Z][^>]*>(?:fh?iche|h?ocht\x{f3})<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4396 485         8002 s/(?])([Ss]na<\/S> <[A-DF-Z][^>]*>(?:tr\x{ed}ocha|daichead|caoga|seasca|seacht\x{f3}|n\x{f3}cha)<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4397 485         1494 s/(?])([Ss]na<\/S> (?:m\x{ed}le|milli\x{fa}n)<\/A>)(?![<>])/$1<\/E>/g;
4398 485         1392 s/(?])([Ss]na<\/S> (?:tr\x{ed}|ceithre|c\x{fa}ig|s\x{e9}|seacht|ocht|naoi|deich)<\/A> <[A-DF-Z][^>]*>(?:g?ch?\x{e9}ad|mh?\x{ed}le|mh?illi\x{fa}n)<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4399 485         997 s/(?])([Ss]na<\/S> hocht<\/A> <[A-DF-Z][^>]*>(?:g?ch?\x{e9}ad|mh?\x{ed}le|mh?illi\x{fa}n)<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4400 485         1046 s/(?])(Shocair<\/A>)(?![<>])/$1<\/E>/g;
4401 485         1350 s/(?])(Socair<\/A>)(?![<>])/$1<\/E>/g;
4402 485         924 s/(?])(shocair<\/A> (?:]*>[^<]+<\/P>))(?![<>])/$1<\/E>/g;
4403 485 100       1888 if (s/(?])(Sp\x{e1}inn<\/N>)(?![<>])/$1<\/E>/g) {
4404 1         5 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4405 1         9 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  1         6  
4406 1         4 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4407             }
4408 485 50       2185 if (s/(?])(Sp\x{e1}inne<\/N>)(?![<>])/$1<\/E>/g) {
4409 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4410             }
4411 485         1270 s/(?])(t?[Ss]r\x{f3}n<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4412 485         1640 s/(?])([Ss]hr\x{f3}n<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4413 485         1216 s/(?])([Nn]a<\/T> St\x{e1}it<\/N> Aontaithe<\/A> Mh?eirice\x{e1}<\/N>)(?![<>])/$1<\/E>/g;
4414 485         1144 s/(?])(t?[Ss]h?\x{fa}il<\/N> (?:]*gnt="y"[^>]*>(?:phr\x{e1}ta|mhianaigh|mh\x{e9}ire)<\/N>))(?![<>])/$1<\/E>/g;
4415 485 100       1734 if (s/(?])([Ss]ula<\/C> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4416 2         16 s/(]*>[Ss]ula<\/C> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4417 2         9 s/(]*>[Ss]ula<\/C> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4418             }
4419 485         1152 s/(?])([Ss]ula<\/C> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
4420 485         1310 s/(?])([Ss]ula<\/C> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
4421 485         1304 s/(?])([Ss]ula<\/C> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4422 485         1386 s/(?])([Ss]ula<\/C> <[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4423 485 100       1863 if (s/(?])([Ss]ula<\/C> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
4424 1         4 s/(]*>[Ss]ula<\/C> i bhfad<\/R><\/E>)/strip_errors($1);/eg;
  0         0  
4425             }
4426 485         1057 s/(?])([Ss]ular<\/C> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4427 485         1073 s/(?])([Ss]ular<\/C> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
4428 485         1507 s/(?])([Ss]ular<\/C> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
4429 485         1290 s/(?])([Ss]ular<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4430 485         1359 s/(?])([Ss]ular<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4431 485         1348 s/(?])([Ss]ularb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4432 485         1310 s/(?])([Ss]ularbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4433 485         1557 s/(?])([Ss]ularbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4434 485         1118 s/(?])([Ss]ularbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4435 485         1251 s/(?])([Ss]h?\x{fa}<\/N> (?:]*>sal\x{fa}in<\/N>))(?![<>])/$1<\/E>/g;
4436 485         1068 s/(?])([Uu]m<\/S> an<\/T> taca<\/N>)(?![<>])/$1<\/E>/g;
4437 485         1127 s/(?])(d?[Tt]h?airseach<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4438 485 100       2076 if (s/(?])((?:]*>[Tt]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
4439 3         21 s/([Aa]n<\/T> ]*>(?:]*>[Tt]\x{e9}<\/P>)<\/E>)/strip_errors($1);/eg;
  3         15  
4440 3         11 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*>[Tt]\x{e9}<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
4441             }
4442 485         1176 s/(?])(d?[Tt]h?\x{e9}ad<\/N> (?:chl\x{e1}irs\x{ed}|fhidle)<\/N>)(?![<>])/$1<\/E>/g;
4443 485         1025 s/(?])(d?[Tt]h?eanga<\/N> bhr\x{f3}ige<\/N>)(?![<>])/$1<\/E>/g;
4444 485         927 s/(?])(d?[Tt]h?eanga<\/N> chloig<\/N>)(?![<>])/$1<\/E>/g;
4445 485         1249 s/(?])([Ii] dteannta<\/S> (?:<[DOS][^>]*>[Ll][^<]+<\/[DOS]>))(?![<>])/$1<\/E>/g;
4446 485         1672 s/(?])(Thearmainn<\/N> Chathrach<\/N>)(?![<>])/$1<\/E>/g;
4447 485         2654 s/(?])(<[A-DF-Z][^>]*>[Tt]har<\/[A-DF-Z]> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
4448 485 50       2274 if (s/(?])([Tt]har<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4449 0         0 s/(]*>[Tt]har<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4450             }
4451 485         1332 s/(?])([Tt]har<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
4452 485         1160 s/(?])([Tt]har<\/S> <[A-DF-Z][^>]*>[Mm]h?aoi?l<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4453 485         1242 s/(?])([Tt]har<\/S> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4454 485         1481 s/(?])([Tt]har<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4455 485         1378 s/(?])([Tt]har<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4456 485         1126 s/(?])([Tt]har<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
4457 485         1041 s/(?])([Tt]har<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
4458 485         966 s/(?])([Tt]har<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
4459 485         1258 s/(?])([Tt]har<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
4460 485         1274 s/(?])([Tt]har<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
4461 485         1226 s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) [Tt]h\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
4462 485         1130 s/(?])(d?[Tt]h?ine<\/N> aoil<\/N>)(?![<>])/$1<\/E>/g;
4463 485         1186 s/(?])([Aa]n<\/T> T\x{f3}ga<\/N>)(?![<>])/$1<\/E>/g;
4464 485         1002 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> T\x{f3}ga<\/N>)(?![<>])/$1<\/E>/g;
4465 485         1139 s/(?])(d?[Tt]h?\x{f3}in<\/N> (?:]*gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4466 485         1098 s/(?])(d?[Tt]h?oirchim<\/N> shuain<\/N>)(?![<>])/$1<\/E>/g;
4467 485         1197 s/(?])([Tt]onna<\/N> (?:]*pl="y"[^>]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g;
4468 485         1055 s/(?])((?:<[SV][^>]*>[^<]+<\/[SV]>) (?:]*>[Tt]h?r\x{e1}igh<\/V>))(?![<>])/$1<\/E>/g;
4469 485         1473 s/(?])(<[A-DF-Z][^>]*>[Tt]r\x{ed}<\/[A-DF-Z]> <[A-DF-Z][^>]*>uaire?<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4470 485         1559 s/(?])([Tt]r\x{ed}<\/S> <[A-DF-Z][^>]*>a<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4471 485         1581 s/(?])([Tt]r\x{ed}<\/S> <[A-DF-Z][^>]*>ar<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4472 485         1141 s/(?])([Tt]r\x{ed}<\/S> an<\/T>)(?![<>])/$1<\/E>/g;
4473 485         1519 s/(?])([Tt]r\x{ed}<\/S> n-\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
4474 485         1141 s/(?])([Tt]r\x{ed}<\/S> \x{e1}r<\/D>)(?![<>])/$1<\/E>/g;
4475 485         1147 s/(?])([Tt]r\x{ed}<\/S> (?:is|ar|arb)<\/V>)(?![<>])/$1<\/E>/g;
4476 485         1312 s/(?])([Tt]r\x{ed}<\/S> (?:ba|ab|arbh)<\/V>)(?![<>])/$1<\/E>/g;
4477 485         1184 s/(?])([Tt]r\x{ed}<\/S> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4478 485 50       1763 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g) {
4479 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4480 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4481             }
4482 485 50       1787 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g) {
4483 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4484 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4485             }
4486 485 50       1833 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g) {
4487 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4488 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4489 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4490             }
4491 485 50       2149 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g) {
4492 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4493 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4494 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4495             }
4496 485 50       1678 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g) {
4497 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4498 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4499             }
4500 485 50       1915 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g) {
4501 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4502 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4503             }
4504 485 50       1839 if (s/(?])([Tt]r\x{ed}<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g) {
4505 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4506 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> [Ff]\x{e9}in<\/R> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4507 0         0 s/(]*>[Tt]r\x{ed}<\/S> (?:]*>[^<]+<\/P>)<\/E> <[A-DF-Z][^>]*>(?:seo|sin|si\x{fa}d)<\/[A-DF-Z]> (?:<[DS][^>]*>[Aa]<\/[DS]>) (?:]*pl="n" gnt="n"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4508             }
4509 485 100       2320 if (s/(?])(<[A-DF-Z][^>]*>d?[Tt]h?r\x{ed}<\/[A-DF-Z]> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
4510 1         6 s/(]*><[A-DF-Z][^>]*>d?[Tt]h?r\x{ed}<\/[A-DF-Z]> (?:]*>(?:[Bb]liana|[Cc]inn|[Cc]loigne|[Cc]uarta|[Ff]ichid|[Pp]ingine|[Ss]eachtaine|[Tt]roithe)<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4511             }
4512 485         1605 s/(?])(<[A-DF-Z][^>]*>d?[Tt]r\x{ed}<\/[A-DF-Z]> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
4513 485         1163 s/(?])(<[A-DF-Z][^>]*>[Tt]hr\x{ed}<\/[A-DF-Z]> (?:]*>(?:[Bb]hliana|[Cc]hinn|[Cc]hloigne|[Cc]huarta|[Ff]hichid|[Pp]hingine|[Ss]heachtaine|[Tt]hroithe)<\/N>))(?![<>])/$1<\/E>/g;
4514 485 100       2308 if (s/(?])(d?[Tt]h?r\x{ed}<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4515 2         15 s/(]*>d?[Tt]h?r\x{ed}<\/A> (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  2         11  
4516             }
4517 485 50       1700 if (s/(?])(<[A-DF-Z][^>]*>d?[Tt]h?r\x{ed}<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4518 0         0 s/(]*><[A-DF-Z][^>]*>d?[Tt]h?r\x{ed}<\/[A-DF-Z]> (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4519             }
4520 485         1327 s/(?])([Tt]r\x{ed}<\/S> sna<\/S>)(?![<>])/$1<\/E>/g;
4521 485         1254 s/(?])([Tt]r\x{ed}d<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
4522 485         1069 s/(?])([Tt]r\x{ed}d<\/S> na<\/T>)(?![<>])/$1<\/E>/g;
4523 485 50       1965 if (s/(?])([Tt]r\x{ed}d<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4524 0         0 s/(]*>[Tt]r\x{ed}d<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4525             }
4526 485         1501 s/(?])([Tt]r\x{ed}d<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
4527 485 100       1608 if (s/(?])([Tt]r\x{ed}na<\/S> (?:]*t="caite"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4528 1         9 s/(]*>[Tt]r\x{ed}na<\/S> (?:]*t="caite"[^>]*>(?:n[Dd]\x{fa}i?r|[Rr]ai?bh|bh[Ff]uai?r|bh[Ff]ac|n[Dd]each|n[Dd]earna)[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4529 1         8 s/(]*>[Tt]r\x{ed}na<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4530             }
4531 485 50       1585 if (s/(?])([Tt]r\x{ed}na<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
4532 0         0 s/(]*>[Tt]r\x{ed}na<\/S> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4533             }
4534 485         1178 s/(?])([Tt]r\x{ed}nar<\/S> (?:]*t=".[^a][^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4535 485         1503 s/(?])([Tt]r\x{ed}nar<\/S> (?:]*t="caite"[^>]*>(?:(?:[Dd]\x{fa}i?r|[Rr]ai?bh|[Ff]uair|[Ff]hac|[Dd]heach|[Dd]hearna)[^<]*|[Ff]uarthas)<\/V>))(?![<>])/$1<\/E>/g;
4536 485         1160 s/(?])([Tt]r\x{ed}nar<\/S> (?:]*(?: p=.y|t=..[^a])[^>]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/V>))(?![<>])/$1<\/E>/g;
4537 485         1271 s/(?])([Tt]r\x{ed}nar<\/V> <[A-DF-Z][^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4538 485         1352 s/(?])([Tt]r\x{ed}nar<\/V> <[A-DF-Z][^>]*>[Ff][Hh][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4539 485         1347 s/(?])([Tt]r\x{ed}narb<\/V> <[A-DF-Z][^>]*>[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4540 485         1025 s/(?])([Tt]r\x{ed}narbh<\/V> <[A-DF-Z][^>]*>[Bb]'[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4541 485         941 s/(?])([Tt]r\x{ed}narbh<\/V> <[A-DF-Z][^>]*>(?:[^aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}fF]|[Ff]h?[lr])[^<]+<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4542 485         1050 s/(?])([Tt]r\x{ed}narbh<\/V> <[A-DF-Z][^>]*>[Ff][aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}][^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4543 485         1104 s/(?])([Tt]r\x{ed}n\x{e1}r<\/D> dh\x{e1}<\/A> (?:]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4544 485 100       1599 if (s/(?])([Tt]r\x{ed}n\x{e1}r<\/D> <[A-DF-Z][^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}cfptCFPT]|[Dd][^Tt']|[Gg][^Cc]|[Bb][^Pph]|[Bb]h[^fF])[^<]*<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
4545 1         4 s/(]*>[Tt]r\x{ed}n\x{e1}r<\/D> [Dd]h\x{e1}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4546             }
4547 485         1187 s/(?])([Tt]h?r\x{ed}the<\/N>)(?![<>])/$1<\/E>/g;
4548 485 50       2068 if (s/(?])(d?[Tt]h?ri\x{fa}r<\/N> (?:]*pl="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4549 0         0 s/(]*>d?[Tt]h?ri\x{fa}r<\/N> ban<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4550             }
4551 485         1175 s/(?])(d?[Tt]h?ri\x{fa}r<\/N> m?bh?ean<\/N>)(?![<>])/$1<\/E>/g;
4552 485         1073 s/(?])(d?[Tt]h?uilleamh<\/N> bu\x{ed}<\/A>)(?![<>])/$1<\/E>/g;
4553 485 50       1793 if (s/(?])(d?Th?uirc<\/N>)(?![<>])/$1<\/E>/g) {
4554 0         0 s/([Aa]n<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4555 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4556 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4557             }
4558 485 50       1621 if (s/(?])(d?Th?uirce<\/N>)(?![<>])/$1<\/E>/g) {
4559 0         0 s/([Nn]a<\/T> ]*>[^<]+<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4560             }
4561 485         1080 s/(?])((?:]*>uaithne<\/N>))(?![<>])/$1<\/E>/g;
4562 485 50       1485 if (s/(?])((?:<[AN][^>]*>[Uu]atha<\/[AN]>))(?![<>])/$1<\/E>/g) {
4563 0         0 s/([^<]+<\/S> ]*>(?:<[AN][^>]*>[Uu]atha<\/[AN]>)<\/E>)/strip_errors($1);/eg;
  0         0  
4564 0         0 s/((?:[Aa]inmneach|[Gg]h?airmeach|[Gg]h?inideach|[Tt]h?abharthach)<\/N> ]*>(?:<[AN][^>]*>[Uu]atha<\/[AN]>)<\/E>)/strip_errors($1);/eg;
  0         0  
4565 0         0 s/((?:[Pp]h?earsa|[Uu]imhir)<\/N> ]*>(?:<[AN][^>]*>[Uu]atha<\/[AN]>)<\/E>)/strip_errors($1);/eg;
  0         0  
4566 0         0 s/(]*>(?:<[AN][^>]*>[Uu]atha<\/[AN]>)<\/E> [^<]+<\/C> (?:<[AN][^>]*>[Ii]olra<\/[AN]>))/strip_errors($1);/eg;
  0         0  
4567             }
4568 485         1446 s/(?])([Aa]n<\/T> (?:tUganda|tUragua)<\/N>)(?![<>])/$1<\/E>/g;
4569 485         1064 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Uganda|Uragua)<\/N>)(?![<>])/$1<\/E>/g;
4570 485         1230 s/(?])(U\x{ed}<\/Y> (?:[BCDFGMPT][^Hh']|S[lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bhF)[^<]*<\/Y>)(?![<>])/$1<\/E>/g;
4571 485         1267 s/(?])([Aa]n<\/T> [Uu]ile<\/A> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4572 485         1256 s/(?])([Gg]ach<\/A> [Uu]ile<\/A> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4573 485         1546 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> [Uu]ile<\/A> (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4574 485 100       2101 if (s/(?])([Uu]ile<\/A>)(?![<>])/$1<\/E>/g) {
4575 2         9 s/([Aa]n<\/T> ]*>[Uu]ile<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4576 2         6 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>[Uu]ile<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4577 2         7 s/(i ngach<\/S> ]*>[Uu]ile<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4578 2         16 s/((?:<[AN][^>]*>[^<]+<\/[AN]>) ]*>[Uu]ile<\/A><\/E>)/strip_errors($1);/eg;
  2         43  
4579             }
4580 485         1708 s/(?])([Uu]m<\/S> (?:]*>(?:[CcDdFfGgTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/N>))(?![<>])/$1<\/E>/g;
4581 485         2260 s/(?])([Uu]m<\/S> (?:]*>(?:[MmPp][Hh]|[Bb][Hh][^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4582 485         1395 s/(?])([Uu]m<\/S> an<\/T> (?:]*>[BbCcFfGgPp][^hHcCpP'][^<]*<\/N>))(?![<>])/$1<\/E>/g;
4583 485 50       2091 if (s/(?])([Uu]m<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4584 0         0 s/(]*>[Uu]m<\/S> an<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4585             }
4586 485         1474 s/(?])([Uu]m<\/S> an<\/T> t(?:[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/N>)(?![<>])/$1<\/E>/g;
4587 485         1070 s/(?])([Uu]m<\/S> (?:]*>[Mm]\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4588 485         932 s/(?])([Uu]m<\/S> (?:]*>[Tt]h?\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4589 485         1021 s/(?])([Uu]m<\/S> (?:]*>[\x{c9}\x{e9}]<\/P>))(?![<>])/$1<\/E>/g;
4590 485         1088 s/(?])([Uu]m<\/S> (?:]*>[\x{cd}\x{ed}]<\/P>))(?![<>])/$1<\/E>/g;
4591 485         1254 s/(?])([Uu]m<\/S> (?:]*>(?:[Mm]uid|[Ss]inn)<\/P>))(?![<>])/$1<\/E>/g;
4592 485         1008 s/(?])([Uu]m<\/S> (?:]*>[Ss]ibh<\/P>))(?![<>])/$1<\/E>/g;
4593 485         1179 s/(?])([Uu]m<\/S> (?:]*>[Ii]ad<\/P>))(?![<>])/$1<\/E>/g;
4594 485         1122 s/(?])(in<\/S> (?:]*>umhai?l<\/A>))(?![<>])/$1<\/E>/g;
4595 485 50       3049 if (s/(?])((?:]*pl="n" gnt="n" gnd="f"[^>]*>[mdnh]?'?Ung\x{e1}ir<\/N>))(?![<>])/$1<\/E>/g) {
4596 0         0 s/([Aa]n<\/T> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4597 0         0 s/((?:]*>San<\/N>) ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4598 0         0 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4599 0         0 s/(]*>[^<]+<\/N><\/E> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))/strip_errors($1);/eg;
  0         0  
4600             }
4601 485 50       2116 if (s/(?])((?:]*pl="n" gnt="y" gnd="f"[^>]*>[mdnh]?'?Ung\x{e1}ire<\/N>))(?![<>])/$1<\/E>/g) {
4602 0         0 s/([Nn]a<\/T> ]*>(?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4603             }
4604 485         1370 s/(?])(tarraingt<\/N> urla<\/N>)(?![<>])/$1<\/E>/g;
4605 485         1204 s/(?])([Aa]n<\/T> (?:Vanuat\x{fa}|Veinis\x{e9}ala|V\x{ed}tneam)<\/N>)(?![<>])/$1<\/E>/g;
4606 485         1179 s/(?])((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:Vanuat\x{fa}|Veinis\x{e9}ala|V\x{ed}tneam)<\/N>)(?![<>])/$1<\/E>/g;
4607 485         1080 s/(?])((?:]*>[^<]+[^e\x{e9}]ann<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4608 485         2238 s/(?])((?:]*>[^<]+[e\x{e9}]ann<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4609 485         1064 s/(?])((?:]*>[^<]+a\x{ed}onn<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4610 485         1215 s/(?])((?:]*>[^<]+[^a]\x{ed}onn<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4611 485         1121 s/(?])(n?[Dd]eir<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4612 485         999 s/(?])((?:]*>[^<]+[^e\x{e9}]ann<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4613 485         1265 s/(?])((?:]*>[^<]+[e\x{e9}]ann<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4614 485         962 s/(?])((?:]*>[^<]+a\x{ed}onn<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4615 485         1116 s/(?])((?:]*>[^<]+[^a]\x{ed}onn<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4616 485         1356 s/(?])(n?[Dd]eir<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4617 485         834 s/(?])((?:]*>[^<]+faidh<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4618 485         986 s/(?])((?:]*>[^<]+fidh<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4619 485         832 s/(?])((?:]*>[^<]+\x{f3}idh<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4620 485         894 s/(?])((?:]*>[^<]+eoidh<\/V>) (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4621 485         1298 s/(?])(m?[Bb]h?eidh<\/V> (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4622 485         1064 s/(?])(n?[Gg]h?eobhaidh<\/V> (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4623 485         927 s/(?])(bh[Ff]aighidh<\/V> (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4624 485         1064 s/(?])([Rr]achaidh<\/V> (?:]*>sinn<\/P>))(?![<>])/$1<\/E>/g;
4625 485         1156 s/(?])((?:]*>[^<]+fadh<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4626 485         890 s/(?])((?:]*>[^<]+feadh<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4627 485         899 s/(?])((?:]*>[^<]+\x{f3}dh<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4628 485         1264 s/(?])((?:]*>[^<]+eodh<\/V>) (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4629 485         977 s/(?])(n?[Gg]h?eobhadh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4630 485         1104 s/(?])(bh[Ff]aigheadh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4631 485         948 s/(?])([Rr]achadh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4632 485         1041 s/(?])(m?[Bb]h?eadh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4633 485         1015 s/(?])((?:]*>[^<]+fadh<\/V>) (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4634 485         988 s/(?])((?:]*>[^<]+feadh<\/V>) (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4635 485         1222 s/(?])((?:]*>[^<]+\x{f3}dh<\/V>) (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4636 485         977 s/(?])((?:]*>[^<]+eodh<\/V>) (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4637 485         1071 s/(?])(n?[Gg]h?eobhadh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4638 485         1067 s/(?])(bh[Ff]aigheadh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4639 485         951 s/(?])([Rr]achadh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4640 485         1298 s/(?])(m?[Bb]h?eadh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4641 485         1005 s/(?])((?:]*>[^<]+fadh<\/V>) (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4642 485         1276 s/(?])((?:]*>[^<]+feadh<\/V>) (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4643 485         1316 s/(?])((?:]*>[^<]+\x{f3}dh<\/V>) (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4644 485         1178 s/(?])((?:]*>[^<]+eodh<\/V>) (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4645 485         1207 s/(?])(n?[Gg]h?eobhadh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4646 485         1250 s/(?])(bh[Ff]aigheadh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4647 485         1044 s/(?])([Rr]achadh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4648 485         994 s/(?])(m?[Bb]h?eadh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4649 485         1002 s/(?])((?:]*>[^<]+fadh<\/V>) (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4650 485         1136 s/(?])((?:]*>[^<]+feadh<\/V>) (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4651 485         1032 s/(?])((?:]*>[^<]+\x{f3}dh<\/V>) (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4652 485         925 s/(?])((?:]*>[^<]+eodh<\/V>) (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4653 485         1129 s/(?])(n?[Gg]h?eobhadh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4654 485         1137 s/(?])(bh[Ff]aigheadh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4655 485         895 s/(?])([Rr]achadh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4656 485         1050 s/(?])(m?[Bb]h?eadh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4657 485         939 s/(?])([^<]+[^\x{e9}e]adh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4658 485         942 s/(?])([^<]+[\x{e9}e]adh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4659 485         1107 s/(?])([^<]+a\x{ed}odh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4660 485         1047 s/(?])([^<]+[^a]\x{ed}odh<\/V> (?:]*>m\x{e9}<\/P>))(?![<>])/$1<\/E>/g;
4661 485         1010 s/(?])([^<]+[^\x{e9}e]adh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4662 485         1009 s/(?])([^<]+[\x{e9}e]adh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4663 485         935 s/(?])([^<]+a\x{ed}odh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4664 485         995 s/(?])([^<]+[^a]\x{ed}odh<\/V> (?:]*>t\x{fa}<\/P>))(?![<>])/$1<\/E>/g;
4665 485         1444 s/(?])([^<]+[^\x{e9}e]adh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4666 485         1365 s/(?])([^<]+[\x{e9}e]adh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4667 485         1043 s/(?])([^<]+a\x{ed}odh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4668 485         958 s/(?])([^<]+[^a]\x{ed}odh<\/V> (?:]*>(?:muid|sinn)<\/P>))(?![<>])/$1<\/E>/g;
4669 485         971 s/(?])([^<]+[^\x{e9}e]adh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4670 485         1019 s/(?])([^<]+[\x{e9}e]adh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4671 485         1381 s/(?])([^<]+a\x{ed}odh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4672 485         987 s/(?])([^<]+[^a]\x{ed}odh<\/V> (?:]*>siad<\/P>))(?![<>])/$1<\/E>/g;
4673 485         1111 s/(?])(g?[Cc]h?ianaibh<\/N>)(?![<>])/$1<\/E>/g;
4674 485         1154 s/(?])([Uu]airibh<\/N>)(?![<>])/$1<\/E>/g;
4675 485         995 s/(?])(cionn<\/N> as<\/S>)(?![<>])/$1<\/E>/g;
4676 485 100       1874 if (s/(?])((?:]*gnt="d"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4677 9         63 s/(]*>(?:]*gnt="d"[^>]*>(?:[Cc]h?ois|[Ll]\x{e1}imh)<\/N>)<\/E>)/strip_errors($1);/eg;
  3         18  
4678 9         23 s/(]*>(?:]*gnt="d"[^>]*>[Cc]ionn<\/N>)<\/E> is<\/V>)/strip_errors($1);/eg;
  0         0  
4679 9         28 s/([Oo]s<\/S> [^<]+<\/D> ]*>(?:]*gnt="d"[^>]*>g?[Cc]h?ionn<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4680 9         42 s/(]*>(?:]*gnt="d"[^>]*>[Dd]'[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         8  
4681 9         35 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4682 9         44 s/((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         31  
4683 9         29 s/((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> [^<]+<\/D> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4684 9         28 s/((?:[Aa][rs]|[Ll]eis)<\/S> [^<]+<\/T> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4685 9         31 s/((?:[Dd]\x{e1}r?|(?:[Ff]aoi|[Ii]|[Ll]e|[Tt]r\x{ed})n(?:a|\x{e1}r))<\/D> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4686 9         27 s/([Dd]h\x{e1}<\/A> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4687 9         27 s/([Aa]n<\/T> <[A-DF-Z][^>]*>[Dd]\x{e1}<\/[A-DF-Z]> ]*>(?:]*gnt="d"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4688             }
4689 485 50       2893 if (s/(?])((?:<[^\/ACNRTY][^>]*>[^<]+<\/[^ACNRTY]>) n?dh?eifre<\/N>)(?![<>])/$1<\/E>/g) {
4690 0         0 s/(]*>is<\/V> n?dh?eifre<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4691 0         0 s/(]*>[^< ]+ [^<]+<\/S> n?dh?eifre<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4692 0         0 s/(]*>(?:[Cc]hun|[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> n?dh?eifre<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4693 0         0 s/(]*>(?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> n?dh?eifre<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4694 0         0 s/(]*>(?:]*>p\x{e9}<\/P>) n?dh?eifre<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4695             }
4696 485 100       3577 if (s/(?])((?:<[^\/ACNRTY][^>]*>[^<]+<\/[^ACNRTY]>) (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4697 5         20 s/(]*>is<\/V> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         7  
4698 5         32 s/(]*>[^< ]+ [^<]+<\/S> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         7  
4699 5         28 s/(]*>(?:[Cc]hun|[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         10  
4700 5         24 s/(]*>(?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  2         12  
4701 5         16 s/(]*>(?:]*>p\x{e9}<\/P>) (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4702             }
4703 485         1536 s/(?])([Gg]o dt\x{ed}<\/S> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4704 485 100       2343 if (s/(?])([^< ]+<\/S> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4705 6         46 s/(]*>(?:[Cc]hun|[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         22  
4706 6         19 s/(dul<\/N> ]*>faoi<\/S> na<\/T> gr\x{e9}ine<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4707             }
4708 485 50       1852 if (s/(?])([^< ]+<\/S> [^<]+<\/D> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4709 0         0 s/(]*>(?:[Cc]hun|[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> [^<]+<\/D> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4710             }
4711 485         1147 s/(?])([Gg]o<\/C> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4712 485 100       4194 if (s/(?])((?:<[^\/ACNRSY][^>]*>[^<]+<\/[^ACNRSY]>) [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4713 3         15 s/(]*>is<\/V> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         10  
4714             }
4715 485 50       2717 if (s/(?])((?:<[^\/ACNRSY][^>]*>[^<]+<\/[^ACNRSY]>) (?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4716 0         0 s/(]*>is<\/V> (?:[MmDd]o|[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> (?:]*gnt="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4717             }
4718 485 100       3346 if (s/(?])((?:<[^\/AN][^>]*>[^<]+<\/[^AN]>) (?:]*gnt="y"[^>]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4719 10         32 s/(]*>Leitir<\/Y> M\x{f3}ir<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4720 10         78 s/(]*>(?:<[^\/AN][^>]*>[^<]+<\/[^AN]>) (?:l\x{fa}ide|m\x{f3}ide)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4721 10         71 s/(]*>(?:<[^\/AN][^>]*>[^<]+<\/[^AN]>) [Bb]'[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4722 10         57 s/(]*>[^<]+<\/V> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  7         43  
4723 10         44 s/(]*>[Nn]\x{ed}os<\/R> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  3         13  
4724 10         34 s/(]*>[Nn]\x{ed}(?: ?ba|b)<\/R> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4725             }
4726 485 50       2707 if (s/(?])([^<]+<\/S> (?:]*>[^<]+<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4727 0         0 s/(]*>[^<]+<\/S> (?:]*>[^<]+<\/N>) (?:l\x{fa}ide|m\x{f3}ide)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4728 0         0 s/(]*>[^<]+<\/S> (?:]*>[^<]+<\/N>) [Bb]'[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4729 0         0 s/(]*>[^< ]+ [^<]+<\/S> (?:]*gnt="y"[^>]*>[^<]+<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4730 0         0 s/(]*>(?:[Cc]hun|[Cc]ois|[Dd]\x{e1}la|[Ff]earacht|[Tt]impeall|[Tt]rasna)<\/S> (?:]*gnt="y"[^>]*>[^<]+<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4731             }
4732 485         1641 s/(?])([Ii] g[Cc]\x{f3}ir<\/S> [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4733 485         2063 s/(?])([Ii] g[Cc]\x{f3}ir<\/S> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4734 485         1355 s/(?])([\x{c1}\x{e1}]r<\/D> (?:]*>nd\x{f3}ighe?<\/N>))(?![<>])/$1<\/E>/g;
4735 485         1125 s/(?])((?:]*>nd\x{f3}ighe?<\/N>))(?![<>])/$1<\/E>/g;
4736 485         1242 s/(?])([Tt]har<\/S> n-ais<\/N>)(?![<>])/$1<\/E>/g;
4737 485         1084 s/(?])(d'\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
4738 485         1785 s/(?])([Mm]ar<\/C> <[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> (?:]*>gc\x{e9}anna<\/N>))(?![<>])/$1<\/E>/g;
4739 485 100       5754 if (s/(?])((?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>))(?![<>])/$1<\/E>/g) {
4740 55         403 s/(]*>(?:]*>m[Bb]'[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4741 55         366 s/((?:[Aa][grs]|[Cc]huig|[Dd][eo]|[Ff]aoi|[Gg]an|[Gg]o|[Ll]e|[\x{d3}\x{f3}]|[Ii]n?|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d?|[Uu]m)<\/S> [Aa]n<\/T> ]*>(?:]*pl="n" gnt="[nd]"[^>]*>(?:g[Cc]|b[Pp]|m[Bb]|n[Gg]|bh[fF])[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  7         50  
4742 55         247 s/([Ll]eis<\/S> [Aa]n<\/T> ]*>(?:]*pl="n" gnt="[nd]"[^>]*>(?:g[Cc]|b[Pp]|m[Bb]|n[Gg]|bh[fF])[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         7  
4743 55         466 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*pl="n" gnt="[nd]"[^>]*>(?:g[Cc]|b[Pp]|m[Bb]|n[Gg]|bh[fF])[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         26  
4744 55         193 s/([Nn]a<\/T> ]*>(?:]*pl="y" gnt="y"[^>]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  6         33  
4745 55         139 s/(na<\/T> ]*>bhF\x{e1}l<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4746 55         297 s/([Ii]<\/S> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  21         116  
4747 55         145 s/(<[A-DF-Z][^>]*>(?:[Cc]\x{e1}|[Gg]o)<\/[A-DF-Z]> ]*>bh[Ff]ios<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4748 55         161 s/((?:[Aa]|[\x{c1}\x{e1}]r|[Bb]hur)<\/D> [Dd]h\x{e1}<\/A> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4749 55         709 s/(<[A-DF-Z][^>]*>(?:n?[Dd]h?eich|[Nn]aoi|(?:h|[mbd]'|n-)?[Oo]cht|[Ss]h?eacht|[789]|10)<\/[A-DF-Z]> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  1         6  
4750 55         432 s/(<[A-DF-Z][^>]*>(?:[1-9][0-9]*[789]|[0-9]*10)<\/[A-DF-Z]> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4751 55         208 s/([Aa] [Ss]eacht<\/A> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4752 55         157 s/([Aa] h[Oo]cht<\/A> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4753 55         178 s/([Aa] [Nn]aoi<\/A> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4754 55         315 s/((?:(?:[Ff]aoin|[Ii]n|[Ll]en|[\x{d3}\x{f3}]n|[Tt]r\x{ed}n)?(?:[Aa]|\x{e1}r)|[Dd]?[\x{c1}\x{e1}]r?|[Bb]hur|[Aa]rna)<\/D> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  16         90  
4755 55         140 s/([Uu]m<\/S> an<\/T> ]*>(?:]*>dtaca<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4756 55         199 s/(<[A-DF-Z][^>]*>[Mm]ar<\/[A-DF-Z]> an<\/T> ]*>(?:]*>gc\x{e9}anna<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4757             }
4758 485 100       3999 if (s/(?])((?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>))(?![<>])/$1<\/E>/g) {
4759 46         181 s/([Cc]ha<\/U> ]*>(?:]*>(?:d[Tt]|n[Dd])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         8  
4760 46         184 s/((?:[Aa]|[Nn]ach)<\/U> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  4         25  
4761 46         185 s/([Aa]<\/H> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  7         40  
4762 46         151 s/([Cc]\x{e1}<\/Q> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  1         8  
4763 46         199 s/([Aa]n<\/Q> ]*>(?:]*>(?:d[Tt]|n[Dd])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4764 46         237 s/([Aa]n<\/Q> ]*>(?:]*>(?:g[Cc]|b[Pp]|m[Bb]|n[Gg]|bh[fF])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  17         107  
4765 46         292 s/((?:[Dd]\x{e1}|[Gg]o|[Mm]ura|[Ss]ula)<\/C> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  11         676  
4766 46         144 s/((?:faoi|i|le|\x{f3}|tr\x{ed})na<\/S> ]*>(?:]*>(?:n(?:-[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|[AEIOU\x{c1}\x{c9}\x{cd}\x{d3}\x{da}])|d[Tt]|g[Cc]|b[Pp]|m[Bb]|n[DdGg]|bh[fF])[^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  2         11  
4767 46         130 s/([Nn]\x{ed}<\/U> ]*>(?:]*>bh[Ff]ua(?:ir(?:ea[md]ar)?|rthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4768 46         138 s/([Nn]\x{ed}<\/U> ]*>(?:]*>bhfaigh[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         5  
4769             }
4770 485 100       2476 if (s/(?])([^<]+<\/A>)(?![<>])/$1<\/E>/g) {
4771 7         31 s/([Nn]a<\/T> ]*>(?:haon|hocht)<\/A><\/E>)/strip_errors($1);/eg;
  1         9  
4772 7         41 s/((?:[Ll]e|[Ss]na)<\/S> ]*>(?:haon|hocht)<\/A><\/E>)/strip_errors($1);/eg;
  2         6  
4773 7         62 s/(<[A-DF-Z][^>]*>[Aa]<\/[A-DF-Z]> ]*>(?:h[Aa]on|h[Oo]cht)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4774 7         51 s/(<[A-DF-Z][^>]*>[Cc]homh<\/[A-DF-Z]> ]*>[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  1         11  
4775 7         44 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*>[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  1         12  
4776 7         24 s/(<[A-DF-Z][^>]*>[Nn]\x{ed}<\/[A-DF-Z]> ]*>hionann<\/A><\/E>)/strip_errors($1);/eg;
  1         9  
4777             }
4778 485 100       2112 if (s/(?])((?:]*h="y"[^>]*>[^<]+<\/P>))(?![<>])/$1<\/E>/g) {
4779 2         21 s/(<[A-DF-Z][^>]*>(?:[Cc]\x{e9}|[Nn]\x{ed}|[Ll]e|[Pp]\x{e9})<\/[A-DF-Z]> ]*>(?:]*h="y"[^>]*>[^<]+<\/P>)<\/E>)/strip_errors($1);/eg;
  1         9  
4780             }
4781 485 100       2430 if (s/(?])((?:]*h="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4782 33         173 s/([^<]*[A\x{c1}a\x{e1}]<\/D> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  2         15  
4783 33         90 s/([Cc]\x{e1}<\/V> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         9  
4784 33         101 s/(<[A-DF-Z][^>]*>g?[Cc]h?eithre<\/[A-DF-Z]> ]*>(?:]*h="y"[^>]*>hairde<\/N>)<\/E>)/strip_errors($1);/eg;
  1         10  
4785 33         367 s/(<[A-DF-Z][^>]*>[Dd]ara<\/[A-DF-Z]> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         10  
4786 33         113 s/((?:]*>(?:[^<][^<]*[^m]|[0-9]+)\x{fa}<\/A>) ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         23  
4787 33         362 s/(<[A-DF-Z][^>]*>a<\/[A-DF-Z]> [Dd]h\x{e1}<\/A> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         11  
4788 33         288 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  1         5  
4789 33         99 s/([Ss]na<\/S> ]*>(?:]*pl="y" [^>]+ h="y"[^>]*>[^<]+<\/N>|(?:]*pl="y" [^>]+ h="y"[^>]*>)+<\/Z>[^<]+<\/B>)<\/E>)/strip_errors($1);/eg;
  1         8  
4790 33         116 s/([Ll]e<\/S> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         25  
4791 33         148 s/([Nn]a<\/T> ]*>(?:]*h="y"[^>]*>[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  16         59  
4792 33         114 s/(<[A-DF-Z][^>]*>(?:d?[tT]h?r\x{ed}|g?[Cc]h?eithre|g?[Cc]h?\x{fa}ig|[Ss]h?\x{e9})<\/[A-DF-Z]> ]*>(?:]*h="y"[^>]*>huaire<\/N>)<\/E>)/strip_errors($1);/eg;
  2         10  
4793             }
4794 485 100       3877 if (s/(?])((?:]*t="[flo][^o][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4795 33         374 s/(<[A-DF-Z][^>]*>(?:[Mm]\x{e1}|[Nn]\x{ed}|[\x{d3}\x{f3}])<\/[A-DF-Z]> ]*>(?:]*t="[flo][^o][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  16         83  
4796 33         160 s/([Aa]<\/G> ]*>(?:]*t="[flo][^o][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  12         48  
4797 33         105 s/([Cc]ha<\/U> ]*>(?:]*t="[flo][^o][^>]*>(?:[CcFfGgMmPpSs][Hh]|[Bb]h[^fF])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4798 33         93 s/([\x{d3}\x{f3}]<\/C> ]*>(?:]*t="[flo][^o][^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4799 33         110 s/(]*>(?:]*t="[flo][^o][^>]*>[Gg]heo[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  2         16  
4800             }
4801 485         2001 s/(?])((?:[Gg]ur|[Mm]urar|[Ss]ular)<\/C> (?:]*t="caite"[^>]*>(?:rinne[^<]*|chonai?c[^<]*|chua(?:igh|[md]ar|thas)|bh\x{ed}(?:o[md]ar|othas)?)<\/V>))(?![<>])/$1<\/E>/g;
4802 485         1429 s/(?])((?:d\x{e1}r|(?:faoi|i|le|\x{f3}|tr\x{ed})nar)<\/S> (?:]*t="caite"[^>]*>(?:rinne[^<]*|chonai?c[^<]*|chua(?:igh|[md]ar|thas)|bh\x{ed}(?:o[md]ar|othas)?)<\/V>))(?![<>])/$1<\/E>/g;
4803 485         3406 s/(?])(<[A-DF-Z][^>]*>(?:[Aa]r|[Cc]\x{e1}r|[Nn]\x{e1}r|[Nn]\x{ed}or)<\/[A-DF-Z]> (?:]*t="caite"[^>]*>(?:rinne[^<]*|chonai?c[^<]*|chua(?:igh|[md]ar|thas)|bh\x{ed}(?:o[md]ar|othas)?)<\/V>))(?![<>])/$1<\/E>/g;
4804 485         1599 s/(?])((?:[Gg]o|[Mm]ura|[Ss]ula)<\/C> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>))(?![<>])/$1<\/E>/g;
4805 485         1259 s/(?])((?:faoi|i|le|\x{f3}|tr\x{ed})na<\/S> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>))(?![<>])/$1<\/E>/g;
4806 485         4506 s/(?])(<[A-DF-Z][^>]*>(?:[Aa]n|[Cc]\x{e1}|[Dd]\x{e1}|[Nn]ach|[Nn]\x{ed})<\/[A-DF-Z]> (?:]*>(?:n?gh?eo[bf][^<]+|d'\x{ed}osf[^<]+|t\x{e1}(?:im|imid|thar)?)<\/V>))(?![<>])/$1<\/E>/g;
4807 485 100       4696 if (s/(?])((?:]*>(?:rai?bh(?:a[md]ar|thas)?|bhfuil(?:im|imid|tear)?|n?dh?each(?:aigh|a[md]ar|thas)|\x{ed}osf[a\x{e1}][^<]+|(?:bhf|fh)ac(?:a|a[dm]ar|thas)|(?:bhf|fh)aigh(?:idh|fear|inn|fe\x{e1}|eadh|imis|id\x{ed}s|f\x{ed})|n?dh?earn[^<]+)<\/V>))(?![<>])/$1<\/E>/g) {
4808 46         237 s/((?:[Gg]o|[Mm]ura|[Ss]ula)<\/C> ]*>(?:]*>(?:rai?bh(?:a[md]ar|thas)?|bhfuil(?:im|imid|tear)?|n?dh?each(?:aigh|a[md]ar|thas)|\x{ed}osf[a\x{e1}][^<]+|(?:bhf|fh)ac(?:a|a[dm]ar|thas)|(?:bhf|fh)aigh(?:idh|fear|inn|fe\x{e1}|eadh|imis|id\x{ed}s|f\x{ed})|n?dh?earn[^<]+)<\/V>)<\/E>)/strip_errors($1);/eg;
  6         22  
4809 46         114 s/((?:faoi|i|le|\x{f3}|tr\x{ed})na<\/S> ]*>(?:]*>(?:rai?bh(?:a[md]ar|thas)?|bhfuil(?:im|imid|tear)?|n?dh?each(?:aigh|a[md]ar|thas)|\x{ed}osf[a\x{e1}][^<]+|(?:bhf|fh)ac(?:a|a[dm]ar|thas)|(?:bhf|fh)aigh(?:idh|fear|inn|fe\x{e1}|eadh|imis|id\x{ed}s|f\x{ed})|n?dh?earn[^<]+)<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4810 46         291 s/((?:<[HU][^>]*>[Aa]<\/[HU]>) ]*>(?:]*>(?:rai?bh(?:a[md]ar|thas)?|bhfuil(?:im|imid|tear)?|n?dh?each(?:aigh|a[md]ar|thas)|\x{ed}osf[a\x{e1}][^<]+|(?:bhf|fh)ac(?:a|a[dm]ar|thas)|(?:bhf|fh)aigh(?:idh|fear|inn|fe\x{e1}|eadh|imis|id\x{ed}s|f\x{ed})|n?dh?earn[^<]+)<\/V>)<\/E>)/strip_errors($1);/eg;
  4         17  
4811 46         381 s/(<[A-DF-Z][^>]*>(?:[Aa]n|[Cc]\x{e1}|[Cc]ha|[Cc]han|[Dd]\x{e1}|[Nn]ach|[Nn]\x{ed})<\/[A-DF-Z]> ]*>(?:]*>(?:rai?bh(?:a[md]ar|thas)?|bhfuil(?:im|imid|tear)?|n?dh?each(?:aigh|a[md]ar|thas)|\x{ed}osf[a\x{e1}][^<]+|(?:bhf|fh)ac(?:a|a[dm]ar|thas)|(?:bhf|fh)aigh(?:idh|fear|inn|fe\x{e1}|eadh|imis|id\x{ed}s|f\x{ed})|n?dh?earn[^<]+)<\/V>)<\/E>)/strip_errors($1);/eg;
  35         96  
4812             }
4813 485 100       4300 if (s/(?])((?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4814 17         83 s/(]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/V><\/E>)/strip_errors($1);/eg;
  6         34  
4815 17         44 s/(]*>(?:]*t="caite"[^>]*>[Aa]rsa<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4816 17         210 s/(]*>(?:]*t="caite"[^>]*>[Ff]ua(?:ir(?:ea[md]ar)?|rthas)<\/V>)<\/E>)/strip_errors($1);/eg;
  6         30  
4817 17         68 s/((?:[Gg]ur|[Mm]urar|[Ss]ular)<\/C> ]*>(?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         6  
4818 17         49 s/((?:d\x{e1}r|(?:faoi|i|le|\x{f3}|tr\x{ed})nar)<\/S> ]*>(?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4819 17         81 s/(<[A-DF-Z][^>]*>(?:[Aa]r|[Cc]\x{e1}r|[Cc]har|[Nn]\x{e1}r|[Nn]\x{ed}or)<\/[A-DF-Z]> ]*>(?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4820 17         72 s/(<[A-DF-Z][^>]*>[Aa]n<\/[A-DF-Z]> ]*>(?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/V>)<\/E>)/strip_errors($1);/eg;
  2         10  
4821 17         70 s/(<[A-DF-Z][^>]*>[Nn]\x{ed}<\/[A-DF-Z]> ]*>(?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>(?:[aeiouAEIOU\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}\x{c1}\x{c9}\x{cd}\x{d3}\x{da}]|[Ff]h?[aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}])[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4822             }
4823 485         1746 s/(?])((?:[Gg]ur|[Mm]urar|[Ss]ular)<\/C> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[Dd]'[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4824 485         1444 s/(?])((?:d\x{e1}r|(?:faoi|i|le|\x{f3}|tr\x{ed})nar)<\/S> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[Dd]'[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4825 485         3814 s/(?])(<[A-DF-Z][^>]*>(?:[Aa]r|[Cc]\x{e1}r|[Cc]har|[Nn]\x{e1}r|[Nn]\x{ed}or)<\/[A-DF-Z]> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[Dd]'[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4826 485         1370 s/(?])((?:[Gg]o|[Mm]ura|[Ss]ula)<\/C> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[Dd]'[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4827 485         1167 s/(?])((?:faoi|i|le|\x{f3}|tr\x{ed})na<\/S> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[Dd]'[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4828 485         3815 s/(?])(<[A-DF-Z][^>]*>(?:[Aa]n|[Cc]\x{e1}|[Dd]\x{e1}|[Nn]ach|[Nn]\x{ed})<\/[A-DF-Z]> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[Dd]'[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4829 485 50       2324 if (s/(?])((?:]*>(?:[2-9]|1[0-9])<\/A>) (?:]*>[^<]+<\/N>) (?:]*>(?:[BbCcDdFfGgMmPpTt][^Hh']|[Ss][lnraeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}]|bh[Ff])[^<]*<\/A>))(?![<>])/$1<\/E>/g) {
4830 0         0 s/(]*>(?:]*>(?:[2-9]|1[0-9])<\/A>) (?:]*>[^<]+<\/N>) (?:]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4831             }
4832 485 100       3344 if (s/(?])((?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4833 37         336 s/(]*>(?:]*>the<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4834 37         90 s/(]*>(?:]*>dh\x{e1} ch\x{e9}ad<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4835 37         112 s/(]*>(?:]*>Thuaidh-Theas<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4836 37         153 s/([^< ]+ [^<]+<\/S> ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4837 37         206 s/([^< ]+ [^<]+<\/S> (?:]*>[^<]+<\/A>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4838 37         118 s/([Aa]<\/D> ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  2         11  
4839 37         130 s/([^<]+<\/Y> ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4840 37         234 s/(]*>(?:]*>(?:[Dd]h\x{e1}|[Cc]h\x{e9}ad|[Tt]heas|[Tt]hoir|[Tt]huasluaite|[Tt]h\x{ed}osluaite)<\/A>)<\/E>)/strip_errors($1);/eg;
  14         77  
4841 37         209 s/((?:<[CDST][^>]*>[^<]+<\/[CDST]>) ]*>(?:]*>(?:[Tt]hr\x{ed}|[Cc]heithre|[Cc]h\x{fa}ig|[Ss]h\x{e9}|[Ss]heacht|[Dd]heich)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4842 37         98 s/((?:<[CDST][^>]*>[^<]+<\/[CDST]>) ]*>(?:]*>(?:[^<][^<]*[^m]|[0-9]+)\x{fa}<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4843 37         88 s/((?:<[CDST][^>]*>[^<]+<\/[CDST]>) ]*>(?:]*>[Dd]hara<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4844 37         152 s/((?:]*>(?:[Dd]h?\x{e1}|d?[Tt]h?r\x{ed}|g?[Cc]h?eithre|g?[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|h?[Oo]cht|n?[Dd]h?eich)<\/A>) (?:]*>[^<]+<\/N>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4845 37         82 s/((?:]*>(?:[Dd]h?\x{e1}|d?[Tt]h?r\x{ed}|g?[Cc]h?eithre|g?[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|h?[Oo]cht|n?[Dd]h?eich)<\/A>) (?:]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4846 37         164 s/((?:]*>(?:[2-9]|1[0-9])<\/A>) (?:]*>[^<]+<\/N>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4847 37         85 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4848 37         89 s/([Nn]\x{f3}<\/C> ]*>dh\x{f3}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4849 37         172 s/((?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  1         6  
4850 37         160 s/((?:]*pl="y"[^>]*>[^< ]*[e\x{e9}i\x{ed}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) (?:]*>[^<]+<\/A>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4851 37         132 s/((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4852 37         108 s/((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4853 37         222 s/((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  12         61  
4854 37         211 s/((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4855 37         273 s/((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:]*gnt="y"[^>]*>[^<]+<\/N>) ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4856 37         197 s/((?:]*pl="n" gnt="n" gnd="f"[^>]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) ach<\/C> ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4857 37         102 s/((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  1         7  
4858 37         95 s/((?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N> (?:]*>[^<]+<\/A>) ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4859 37         119 s/([Ii]dir<\/S> ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4860 37         97 s/([Ii]dir<\/S> [^<]+<\/A> agus<\/C> ]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4861 37         114 s/([^<]+<\/V> ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  5         26  
4862 37         150 s/((?:]*>[Bb]h?eirte?<\/N>) (?:]*>[^<]+<\/N>) ]*>(?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  1         8  
4863             }
4864 485 100       2655 if (s/(?])([Aa]n<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4865 4         37 s/((?:[Aa][grs]|[Cc]huig|[Ii]onsar|[Ll]eis|[Rr]oimh|[Tt]har|[Tt]r\x{ed}d|[Uu]m)<\/S> ]*>[Aa]n<\/T> (?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  4         16  
4866 4         18 s/(]*>[Aa]n<\/T> [Mm]he\x{e1}n<\/N><\/E> (?:]*gnt="y"[^>]*>(?:[Ll]ae|[Oo]\x{ed}che)<\/N>))/strip_errors($1);/eg;
  0         0  
4867             }
4868 485 50       3625 if (s/(?])((?:]*pl="n" gnt="n" gnd="m"[^>]*>[^<]+<\/N>) (?:]*pl="n" gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4869 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="m"[^>]*>[^<]+<\/N>) (?:]*pl="n" gnt="y"[^>]*>[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4870 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="m"[^>]*>(?:t-aon|tAon|d'[Aa]on)<\/N>) (?:]*pl="n" gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>)<\/E>)/strip_errors($1);/eg;
  0         0  
4871 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="m"[^>]*>[^<]+<\/N>) (?:]*pl="n" gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>)<\/E> (?:]*>[A-Z\x{c1}\x{c9}\x{cd}\x{d3}\x{da}][^<]*<\/N>))/strip_errors($1);/eg;
  0         0  
4872 0         0 s/(]*>(?:]*pl="n" gnt="n" gnd="m"[^>]*>[^<]+<\/N>) (?:]*pl="n" gnt="y"[^>]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>)<\/E> [^<]+<\/T>)/strip_errors($1);/eg;
  0         0  
4873             }
4874 485         3536 s/(?])((?:<[GH][^>]*>[Aa]<\/[GH]>) (?:<[^\/V][^>]*>[^<]+<\/[^V]>))(?![<>])/$1<\/E>/g;
4875 485         1139 s/(?])([^<]+<\/T> [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4876 485 100       1972 if (s/(?])([Aa]n<\/T> (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4877 5         18 s/(]*>[Aa]n<\/T> (?:]*>(?:[^<][^<]*[^m]|[0-9]+)\x{fa}<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4878 5         35 s/(]*>[Aa]n<\/T> (?:]*>[0-9]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4879 5         29 s/(]*>[Aa]n<\/T> (?:[Aa]on|g?[Cc]h?\x{e9}ad|[Dd]\x{e1}|[Dd]ara|[Uu]ile|[Mm]\x{ed}le)<\/A><\/E>)/strip_errors($1);/eg;
  4         16  
4880 5         20 s/(]*>[Aa]n<\/T> (?:tr\x{ed}|ceithre|c\x{fa}ig|s\x{e9}|seacht|naoi|deich)<\/A><\/E> (?:mh\x{ed}le|mh?illi\x{fa}n)<\/N>)/strip_errors($1);/eg;
  1         8  
4881 5         15 s/(]*>[Aa]n<\/T> [^< ]+ ch\x{e9}ad<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4882 5         15 s/(]*>[Aa]n<\/T> (?:seacht|naoi|deich)<\/A><\/E> gc\x{e9}ad<\/A>)/strip_errors($1);/eg;
  0         0  
4883             }
4884 485 100       2600 if (s/(?])([^<]+<\/T> (?:<[^\/AFNXY][^>]*>[^<]+<\/[^AFNXY]>))(?![<>])/$1<\/E>/g) {
4885 2         5 s/(]*>[Nn]a<\/T> NA<\/T><\/E>)/strip_errors($1);/eg;
  0         0  
4886 2         12 s/(]*>[Aa]n<\/T> (?:]*>[Tt]\x{e9}<\/P>)<\/E>)/strip_errors($1);/eg;
  2         9  
4887             }
4888 485         1500 s/(?])([^<]+<\/R> [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4889 485         1161 s/(?])([^<]+<\/Q> [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4890 485         1374 s/(?])([^<]+<\/Q> [^<]+<\/Q>)(?![<>])/$1<\/E>/g;
4891 485         1311 s/(?])([^<]+<\/Q> (?:]*pl="n" gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
4892 485         1094 s/(?])((?:]*>[^<]+<\/P>) [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4893 485         1005 s/(?])((?:]*>[^<]+<\/O>) [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4894 485         1165 s/(?])((?:]*pl="n" gnt="y" gnd="m"[^>]*>[^<]+<\/N>) [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4895 485         1120 s/(?])((?:]*pl="n" gnt="y" gnd="f"[^>]*>[^<]+<\/N>) [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4896 485 100       1798 if (s/(?])([^<]+<\/S> (?:]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4897 23         64 s/(]*>[^< ]+ [^<]+<\/S> eile<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4898 23         119 s/(]*>[^<]+<\/S> (?:[Cc]ib\x{e9}|[Gg]ach)<\/A><\/E>)/strip_errors($1);/eg;
  4         26  
4899 23         131 s/(]*>[^<]+<\/S> (?:[Aa]on|[Dd]h\x{e1}|d?[Tt]h?r\x{ed}|g?[Cc]h?eithre|g?[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|[Oo]cht|naoi|n?[Dd]h?eich|g?[Cc]h?\x{e9}ad|[Mm]h?\x{ed}le)<\/A><\/E>)/strip_errors($1);/eg;
  7         25  
4900 23         86 s/(]*>[^<]+<\/S> [^< ]+ ch\x{e9}ad<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4901 23         79 s/(]*>(?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:]*>(?:[^<][^<]*[^m]|[0-9]+)\x{fa}<\/A>)<\/E>)/strip_errors($1);/eg;
  3         12  
4902 23         92 s/(]*>[^<]+<\/S> (?:]*>[Bb]'[^<]+<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4903 23         97 s/(]*>[^<]+<\/S> (?:]*>[0-9]+<\/A>)<\/E>)/strip_errors($1);/eg;
  3         14  
4904 23         52 s/(]*>[^<]+<\/S> (?:]*>n\x{ed}os m\x{f3}<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4905 23         84 s/(]*>[^<]+<\/S> [Aa] [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  2         16  
4906 23         56 s/(]*>[Ii] ngach<\/S> (?:[Dd]h\x{e1}|[Dd]ara|[Uu]ile|[Mm]\x{ed}le)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4907 23         76 s/(]*>(?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:g?[Cc]h?\x{e9}ad|[Dd]\x{e1}|[Dd]ara|[Uu]ile|[Mm]\x{ed}le)<\/A><\/E>)/strip_errors($1);/eg;
  1         8  
4908 23         60 s/(]*>(?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:tr\x{ed}|ceithre|c\x{fa}ig|s\x{e9}|seacht|naoi|deich)<\/A><\/E> (?:mh\x{ed}le|mh?illi\x{fa}n)<\/N>)/strip_errors($1);/eg;
  0         0  
4909 23         54 s/(]*>(?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> (?:seacht|naoi|deich)<\/A><\/E> gc\x{e9}ad<\/A>)/strip_errors($1);/eg;
  0         0  
4910 23         69 s/(]*>[Ll]e<\/S> (?:fada|gairid)<\/A><\/E>)/strip_errors($1);/eg;
  2         11  
4911 23         73 s/(]*>[Ll]e<\/S> (?:haon|hocht)<\/A><\/E>)/strip_errors($1);/eg;
  2         9  
4912             }
4913 485         1806 s/(?])([Ss]a<\/S> <[A-DF-Z][^>]*>(?:80|[0-9]?[18]|1?8[0-9][0-9][0-9]*)\x{fa}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
4914 485         1400 s/(?])([Dd]o<\/S> (?:]*t="(?:caite|gn\x{e1}th|coinn)"[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g;
4915 485 100       1740 if (s/(?])([^< ]+<\/S> (?:]* p="."[^>]*>[^<]+<\/V>))(?![<>])/$1<\/E>/g) {
4916 3         21 s/(]*>[^< ]+<\/S> (?:]*>at\x{e1}(?:i[dm]|imid|thar)?<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4917 3         20 s/(]*>(?:faoi|i|le|\x{f3}|tr\x{ed})na<\/S> (?:]* p="."[^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  2         7  
4918 3         13 s/(]*>(?:d\x{e1}r|(?:faoi|i|le|\x{f3}|tr\x{ed})nar)<\/S> (?:]* p="."[^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  0         0  
4919 3         15 s/(]*>[Aa]r?<\/S> (?:]* p="."[^>]*>[^<]+<\/V>)<\/E>)/strip_errors($1);/eg;
  1         7  
4920             }
4921 485 100       2517 if (s/(?])((?:[Dd]h\x{e1}|[Tt]h?r\x{ed}|[Cc]h?eithre|[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|[Oo]cht|[Nn]aoi|[Dd]h?eich)<\/A> (?:]*pl="n"[^>]*>[^<]+<\/N>) (?:]*pl="n"[^>]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4922 2         16 s/(]*>[^<]+<\/A> (?:]*pl="n"[^>]*>[^<]+<\/N>) (?:]*pl="n"[^>]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  2         13  
4923             }
4924 485 50       1850 if (s/(?])((?:[Dd]h\x{e1}|[Tt]h?r\x{ed}|[Cc]h?eithre|[Cc]h?\x{fa}ig|[Ss]h?\x{e9}|[Ss]h?eacht|[Oo]cht|[Nn]aoi)<\/A> (?:]*pl="n"[^>]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*pl="n"[^>]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4925 0         0 s/(]*>[^<]+<\/A> (?:]*pl="n"[^>]*>[^<]+<\/N>) [Dd]h?\x{e9}ag<\/N> (?:]*pl="n"[^>]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4926             }
4927 485 100       1920 if (s/(?])([Bb]h?eirt<\/N> (?:]*pl="n"[^>]*>[^<]+<\/N>) (?:]*pl="n"[^>]*>[^<]+<\/A>))(?![<>])/$1<\/E>/g) {
4928 1         10 s/(]*>[Bb]h?eirt<\/N> (?:]*pl="n"[^>]*>[^<]+<\/N>) (?:]*pl="n"[^>]*>(?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A>)<\/E>)/strip_errors($1);/eg;
  1         5  
4929             }
4930 485 100       2057 if (s/(?])([^<]+<\/T> (?:]*pl="n" gnt="y"[^>]*>[^<]+<\/N>) [^<]+<\/A>)(?![<>])/$1<\/E>/g) {
4931 3         20 s/(]*>[^<]+<\/T> (?:]*pl="n" gnt="y"[^>]*>[^<]+<\/N>) [^< ]+ [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4932 3         20 s/(]*>[^<]+<\/T> (?:]*pl="n" gnt="y"[^>]*>[^<]+<\/N>) (?:[^<]+th?[ae]|c\x{e9}ad|cib\x{e9}|cos\x{fa}il|deich|dh\x{e1}|[Gg]ach|seacht|[Ss]eo|[Ss]in|tr\x{ed}|\x{fa}d|uile|[^<]+ [^<]+)<\/A><\/E>)/strip_errors($1);/eg;
  1         10  
4933 3         13 s/(]*>[^<]+<\/T> (?:]*pl="n" gnt="y"[^>]*>[^<]+<\/N>) [Aa]raon<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
4934             }
4935 485 100       1828 if (s/(?])((?:]*pl="y" gnt="y"[^>]*>[^< ]*[a\x{e1}o\x{f3}u\x{fa}][^aeiou\x{e1}\x{e9}\x{ed}\x{f3}\x{fa}<]+<\/N>) [^<]+<\/A>)(?![<>])/$1<\/E>/g) {
4936 2         9 s/(m?[Bb]h?eirt<\/N> ]*>[Bb]han<\/N> [^<]+<\/A><\/E>)/strip_errors($1);/eg;
  1         36  
4937             }
4938 485         1113 s/(?])([^<]+<\/D> [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4939 485         1112 s/(?])([^<]+<\/D> [^<]+<\/C>)(?![<>])/$1<\/E>/g;
4940 485         1482 s/(?])([^<]+<\/D> [^<]+<\/D>)(?![<>])/$1<\/E>/g;
4941 485         1050 s/(?])([^<]+<\/D> (?:]*>[^<]+<\/O>))(?![<>])/$1<\/E>/g;
4942 485         1025 s/(?])([^<]+<\/D> (?:]*>[^<]+<\/P>))(?![<>])/$1<\/E>/g;
4943 485         1349 s/(?])([^<]+<\/D> [^<]+<\/Q>)(?![<>])/$1<\/E>/g;
4944 485         1120 s/(?])([^<]+<\/D> [^<]+<\/T>)(?![<>])/$1<\/E>/g;
4945 485         1056 s/(?])([^<]+<\/A> (?:[^b]|b[^'])[^<]+<\/A>)(?![<>])/$1<\/E>/g;
4946 485         1134 s/(?])([^<]+<\/A> [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4947 485         1015 s/(?])([^<]+<\/A> [^<]+<\/A>)(?![<>])/$1<\/E>/g;
4948 485 50       2583 if (s/(?])((?:]* p="."[^>]*>[^<]+<\/V>) (?:]*>(?:[CcDdFfGgMmPpSsTt][Hh]|[Bb]h[^fF])[^<]+<\/N>))(?![<>])/$1<\/E>/g) {
4949 0         0 s/(]*>(?:]* p="."[^>]*>[^<]+<\/V>) [Ff]hios<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4950             }
4951 485         1124 s/(?])([Nn]\x{ed}os<\/R> bh?ige<\/A>)(?![<>])/$1<\/E>/g;
4952 485         859 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> bh?ige<\/A>)(?![<>])/$1<\/E>/g;
4953 485         1104 s/(?])([Ii]s<\/V> bh?ige<\/A>)(?![<>])/$1<\/E>/g;
4954 485         957 s/(?])([Nn]\x{ed}os<\/R> dh?\x{f3}cha<\/A>)(?![<>])/$1<\/E>/g;
4955 485         917 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> dh?\x{f3}cha<\/A>)(?![<>])/$1<\/E>/g;
4956 485         1022 s/(?])([Nn]\x{ed}os<\/R> fh?ada<\/A>)(?![<>])/$1<\/E>/g;
4957 485         908 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> fh?ada<\/A>)(?![<>])/$1<\/E>/g;
4958 485         1427 s/(?])([Nn]\x{ed}os<\/R> fh?urasta<\/A>)(?![<>])/$1<\/E>/g;
4959 485         907 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> fh?urasta<\/A>)(?![<>])/$1<\/E>/g;
4960 485         1187 s/(?])([Nn]\x{ed}os<\/R> ioma\x{ed}<\/A>)(?![<>])/$1<\/E>/g;
4961 485         1015 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> ioma\x{ed}<\/A>)(?![<>])/$1<\/E>/g;
4962 485         1058 s/(?])([Nn]\x{ed}os<\/R> mh?aithe<\/A>)(?![<>])/$1<\/E>/g;
4963 485         1152 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> mh?aithe<\/A>)(?![<>])/$1<\/E>/g;
4964 485         1120 s/(?])([Ii]s<\/V> mh?aithe<\/A>)(?![<>])/$1<\/E>/g;
4965 485         1303 s/(?])([Nn]\x{ed}os<\/R> mh?\x{f3}ire<\/A>)(?![<>])/$1<\/E>/g;
4966 485         927 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> mh?\x{f3}ire<\/A>)(?![<>])/$1<\/E>/g;
4967 485         1042 s/(?])([Ii]s<\/V> mh?\x{f3}ire<\/A>)(?![<>])/$1<\/E>/g;
4968 485         1193 s/(?])([Nn]\x{ed}os<\/R> oilce<\/A>)(?![<>])/$1<\/E>/g;
4969 485         876 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> oilce<\/A>)(?![<>])/$1<\/E>/g;
4970 485         1093 s/(?])([Ii]s<\/V> oilce<\/A>)(?![<>])/$1<\/E>/g;
4971 485         1051 s/(?])([Nn]\x{ed}os<\/R> th?e<\/A>)(?![<>])/$1<\/E>/g;
4972 485         1069 s/(?])([Nn]\x{ed}(?: ?ba|b)<\/R> th?e<\/A>)(?![<>])/$1<\/E>/g;
4973 485 50       1746 if (s/(?])([\x{c1}\x{e1}]il<\/N>)(?![<>])/$1<\/E>/g) {
4974 0         0 s/([Mm]h?\x{e1}thair<\/N> ]*>[\x{c1}\x{e1}]il<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4975 0         0 s/([^<]+<\/V> ]*>[\x{c1}\x{e1}]il<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4976             }
4977 485 50       2013 if (s/(?])([Aa]ithnid<\/N>)(?![<>])/$1<\/E>/g) {
4978 0         0 s/([^<]+<\/V> ]*>[Aa]ithnid<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4979             }
4980 485 50       1944 if (s/(?])([Cc]h?uimhin<\/N>)(?![<>])/$1<\/E>/g) {
4981 0         0 s/([^<]+<\/V> ]*>[Cc]h?uimhin<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
4982             }
4983 485 50       1760 if (s/(?])(<[A-DF-Z][^>]*>[Dd]h?\x{e9}ana\x{ed}<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
4984 0         0 s/([^<]+<\/V> ]*><[A-DF-Z][^>]*>[Dd]h?\x{e9}ana\x{ed}<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
4985             }
4986 485 50       1770 if (s/(?])((?:]*>[Dd]h?\x{f3}cha<\/A>))(?![<>])/$1<\/E>/g) {
4987 0         0 s/([^<]+<\/V> ]*>(?:]*>[Dd]h?\x{f3}cha<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
4988 0         0 s/([Cc]homh<\/R> ]*>d\x{f3}cha<\/A><\/E> lena<\/D> athrach<\/N>)/strip_errors($1);/eg;
  0         0  
4989             }
4990 485 50       1620 if (s/(?])(<[A-DF-Z][^>]*>[Dd]h?ual<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
4991 0         0 s/([^<]+<\/V> ]*><[A-DF-Z][^>]*>[Dd]h?ual<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
4992             }
4993 485 100       1887 if (s/(?])((?:]*>h?ea<\/P>))(?![<>])/$1<\/E>/g) {
4994 4         27 s/([^<]+<\/V> ]*>(?:]*>h?ea<\/P>)<\/E>)/strip_errors($1);/eg;
  3         11  
4995 4         12 s/([Aa]r<\/S> inn<\/N> ar<\/S> ]*>(?:]*>ea<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
4996 4         14 s/([Cc]\x{e9}<\/Q> ]*>(?:]*>ea<\/P>)<\/E>)/strip_errors($1);/eg;
  1         6  
4997             }
4998 485 50       2480 if (s/(?])([Ee]agal<\/A>)(?![<>])/$1<\/E>/g) {
4999 0         0 s/([^<]+<\/V> ]*>[Ee]agal<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5000             }
5001 485 50       1768 if (s/(?])((?:]*>\x{e9}ard<\/P>))(?![<>])/$1<\/E>/g) {
5002 0         0 s/([^<]+<\/V> ]*>(?:]*>\x{e9}ard<\/P>)<\/E>)/strip_errors($1);/eg;
  0         0  
5003             }
5004 485 50       1604 if (s/(?])([Ee]ol<\/N>)(?![<>])/$1<\/E>/g) {
5005 0         0 s/([^<]+<\/V> ]*>[Ee]ol<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
5006             }
5007 485 100       1437 if (s/(?])([Ff]h?\x{e9}idir<\/N>)(?![<>])/$1<\/E>/g) {
5008 3         23 s/([^<]+<\/V> ]*>[Ff]h?\x{e9}idir<\/N><\/E>)/strip_errors($1);/eg;
  3         18  
5009             }
5010 485 100       1768 if (s/(?])([Ff]h?ol\x{e1}ir<\/A>)(?![<>])/$1<\/E>/g) {
5011 1         5 s/([Nn][^<]+<\/V> ]*>[Ff]h?ol\x{e1}ir<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5012             }
5013 485 100       1564 if (s/(?])((?:]*>[Ii]oma\x{ed}<\/A>))(?![<>])/$1<\/E>/g) {
5014 1         6 s/([^<]+<\/V> ]*>(?:]*>[Ii]oma\x{ed}<\/A>)<\/E>)/strip_errors($1);/eg;
  1         7  
5015             }
5016 485 50       1838 if (s/(?])([Ii]onann<\/A>)(?![<>])/$1<\/E>/g) {
5017 0         0 s/([^<]+<\/V> ]*>[Ii]onann<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5018             }
5019 485 100       1783 if (s/(?])((?:]*>[Ll]\x{e9}ir<\/A>))(?![<>])/$1<\/E>/g) {
5020 1         8 s/([^<]+<\/V> ]*>(?:]*>[Ll]\x{e9}ir<\/A>)<\/E>)/strip_errors($1);/eg;
  1         5  
5021             }
5022 485 100       1955 if (s/(?])([Ll]eor<\/A>)(?![<>])/$1<\/E>/g) {
5023 2         8 s/([^<]+<\/V> ]*>[Ll]eor<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5024 2         12 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*>leor<\/A><\/E>)/strip_errors($1);/eg;
  2         11  
5025 2         11 s/([Ll]eor<\/A> ]*>leor<\/A><\/E>)/strip_errors($1);/eg;
  2         8  
5026             }
5027 485 50       2603 if (s/(?])([Mm]h?iste<\/A>)(?![<>])/$1<\/E>/g) {
5028 0         0 s/([^<]+<\/V> ]*>[Mm]h?iste<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5029             }
5030 485 50       1663 if (s/(?])(<[A-DF-Z][^>]*>[Mm]h?ithid<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g) {
5031 0         0 s/([^<]+<\/V> ]*><[A-DF-Z][^>]*>[Mm]h?ithid<\/[A-DF-Z]><\/E>)/strip_errors($1);/eg;
  0         0  
5032             }
5033 485 50       1727 if (s/(?])((?:]*>[Nn]\x{e1}ir<\/A>))(?![<>])/$1<\/E>/g) {
5034 0         0 s/([^<]+<\/V> ]*>(?:]*>[Nn]\x{e1}ir<\/A>)<\/E>)/strip_errors($1);/eg;
  0         0  
5035             }
5036 485 50       1828 if (s/(?])([Oo]th<\/N>)(?![<>])/$1<\/E>/g) {
5037 0         0 s/([^<]+<\/V> ]*>[Oo]th<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
5038             }
5039 485 50       1563 if (s/(?])([Aa]nsa<\/A>)(?![<>])/$1<\/E>/g) {
5040 0         0 s/([^<]+<\/V> ]*>[Aa]nsa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5041 0         0 s/([Nn]\x{ed}os<\/R> ]*>[Aa]nsa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5042 0         0 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Aa]nsa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5043             }
5044 485 100       2117 if (s/(?])([Dd]h?\x{f3}ich\x{ed}<\/A>)(?![<>])/$1<\/E>/g) {
5045 1         6 s/([^<]+<\/V> ]*>[Dd]h?\x{f3}ich\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  1         5  
5046 1         3 s/([Nn]\x{ed}os<\/R> ]*>[Dd]h?\x{f3}ich\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5047 1         4 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Dd]h?\x{f3}ich\x{ed}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5048             }
5049 485 100       1627 if (s/(?])([Ff]h?aide<\/A>)(?![<>])/$1<\/E>/g) {
5050 1         4 s/([^<]+<\/V> ]*>[Ff]h?aide<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5051 1         7 s/([Nn]\x{ed}os<\/R> ]*>[Ff]h?aide<\/A><\/E>)/strip_errors($1);/eg;
  1         5  
5052 1         3 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Ff]h?aide<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5053             }
5054 485 100       1835 if (s/(?])([Ff]h?earr<\/A>)(?![<>])/$1<\/E>/g) {
5055 3         25 s/([^<]+<\/V> ]*>[Ff]h?earr<\/A><\/E>)/strip_errors($1);/eg;
  3         10  
5056 3         9 s/([Nn]\x{ed}os<\/R> ]*>[Ff]h?earr<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5057 3         11 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Ff]h?earr<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5058             }
5059 485 50       1696 if (s/(?])([Ff]h?usa<\/A>)(?![<>])/$1<\/E>/g) {
5060 0         0 s/([^<]+<\/V> ]*>[Ff]h?usa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5061 0         0 s/([Nn]\x{ed}os<\/R> ]*>[Ff]h?usa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5062 0         0 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Ff]h?usa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5063             }
5064 485 50       1728 if (s/(?])([Ll]\x{fa}<\/A>)(?![<>])/$1<\/E>/g) {
5065 0         0 s/([^<]+<\/V> ]*>[Ll]\x{fa}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5066 0         0 s/([Nn]\x{ed}os<\/R> ]*>[Ll]\x{fa}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5067 0         0 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Ll]\x{fa}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5068             }
5069 485 100       1719 if (s/(?])([Mm]h?\x{f3}<\/A>)(?![<>])/$1<\/E>/g) {
5070 2         17 s/([^<]+<\/V> ]*>[Mm]h?\x{f3}<\/A><\/E>)/strip_errors($1);/eg;
  2         8  
5071 2         7 s/([Nn]\x{ed}os<\/R> ]*>[Mm]h?\x{f3}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5072 2         7 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Mm]h?\x{f3}<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5073             }
5074 485 50       1489 if (s/(?])([Tt]h?\x{fa}isce<\/A>)(?![<>])/$1<\/E>/g) {
5075 0         0 s/([^<]+<\/V> ]*>[Tt]h?\x{fa}isce<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5076 0         0 s/([Nn]\x{ed}os<\/R> ]*>[Tt]h?\x{fa}isce<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5077 0         0 s/([Nn]\x{ed}(?: ?ba|b)<\/R> ]*>[Tt]h?\x{fa}isce<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5078             }
5079 485         7797 s/(?])([Aa]r<\/S> [Bb]hallchrith<\/N>)(?![<>])/$1<\/E>/g;
5080 485         1324 s/(?])([Aa]r<\/S> [Bb]h\x{ed}s<\/N>)(?![<>])/$1<\/E>/g;
5081 485         1137 s/(?])([Aa]r<\/S> [Bb]huile<\/N>)(?![<>])/$1<\/E>/g;
5082 485         1360 s/(?])([Aa]r<\/S> [Cc]heal<\/N>)(?![<>])/$1<\/E>/g;
5083 485         1027 s/(?])([Aa]r<\/S> [Cc]h\x{e9}alacan<\/N>)(?![<>])/$1<\/E>/g;
5084 485         1374 s/(?])([Aa]r<\/S> [Cc]heant<\/N>)(?![<>])/$1<\/E>/g;
5085 485         1309 s/(?])([Aa]r<\/S> [Cc]heathr\x{fa}in<\/N>)(?![<>])/$1<\/E>/g;
5086 485         1056 s/(?])([Aa]r<\/S> [Cc]h\x{ed}os<\/N>)(?![<>])/$1<\/E>/g;
5087 485         1097 s/(?])([Aa]r<\/S> [Cc]hip\x{ed}n\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
5088 485         1196 s/(?])([Aa]r<\/S> [Cc]h\x{f3}imh\x{e9}id<\/N>)(?![<>])/$1<\/E>/g;
5089 485         870 s/(?])([Aa]r<\/S> [Cc]homhbhr\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
5090 485         1081 s/(?])([Aa]r<\/S> [Cc]homhfhad<\/N>)(?![<>])/$1<\/E>/g;
5091 485         922 s/(?])([Aa]r<\/S> [Cc]homhsc\x{f3}r<\/N>)(?![<>])/$1<\/E>/g;
5092 485         1183 s/(?])([Aa]r<\/S> [Cc]hrith<\/N>)(?![<>])/$1<\/E>/g;
5093 485         1164 s/(?])([Aa]r<\/S> [Cc]hrochadh<\/N>)(?![<>])/$1<\/E>/g;
5094 485         1014 s/(?])([Aa]r<\/S> [Dd]h\x{e1}ir<\/N>)(?![<>])/$1<\/E>/g;
5095 485         1062 s/(?])([Aa]r<\/S> [Dd]heic<\/N>)(?![<>])/$1<\/E>/g;
5096 485         947 s/(?])([Aa]r<\/S> [Dd]heil<\/N>)(?![<>])/$1<\/E>/g;
5097 485         1437 s/(?])([Aa]r<\/S> [Dd]heiseal<\/N>)(?![<>])/$1<\/E>/g;
5098 485         1098 s/(?])([Aa]r<\/S> [Dd]heora\x{ed}ocht<\/N>)(?![<>])/$1<\/E>/g;
5099 485         1025 s/(?])([Aa]r<\/S> [Dd]hi\x{fa}it\x{e9}<\/N>)(?![<>])/$1<\/E>/g;
5100 485         982 s/(?])([Aa]r<\/S> [Ff]h\x{e1}il<\/N>)(?![<>])/$1<\/E>/g;
5101 485         1005 s/(?])([Aa]r<\/S> [Ff]h\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
5102 485         912 s/(?])([Aa]r<\/S> [Ff]haonoscailt<\/N>)(?![<>])/$1<\/E>/g;
5103 485         1195 s/(?])([Aa]r<\/S> [Ff]headh<\/N>)(?![<>])/$1<\/E>/g;
5104 485         1008 s/(?])([Aa]r<\/S> [Ff]h\x{e9}arach<\/N>)(?![<>])/$1<\/E>/g;
5105 485         958 s/(?])([Aa]r<\/S> [Ff]heitheamh<\/N>)(?![<>])/$1<\/E>/g;
5106 485         1095 s/(?])([Aa]r<\/S> [Ff]hiannas<\/N>)(?![<>])/$1<\/E>/g;
5107 485         838 s/(?])([Aa]r<\/S> [Ff]hiar<\/N>)(?![<>])/$1<\/E>/g;
5108 485         1052 s/(?])([Aa]r<\/S> [Ff]hionra\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
5109 485         976 s/(?])([Aa]r<\/S> [Ff]hiuchadh<\/N>)(?![<>])/$1<\/E>/g;
5110 485         1040 s/(?])([Aa]r<\/S> [Ff]h\x{f3}namh<\/N>)(?![<>])/$1<\/E>/g;
5111 485         1087 s/(?])([Aa]r<\/S> [Ff]horbh\x{e1}s<\/N>)(?![<>])/$1<\/E>/g;
5112 485         1131 s/(?])([Aa]r<\/S> [Ff]hoscadh<\/N>)(?![<>])/$1<\/E>/g;
5113 485         1017 s/(?])([Aa]r<\/S> [Ff]host\x{fa}<\/N>)(?![<>])/$1<\/E>/g;
5114 485         1025 s/(?])([Aa]r<\/S> [Ff]hruili\x{fa}<\/N>)(?![<>])/$1<\/E>/g;
5115 485         1050 s/(?])([Aa]r<\/S> [Gg]hor<\/N>)(?![<>])/$1<\/E>/g;
5116 485         1210 s/(?])([Aa]r<\/S> [Mm]haidin<\/N>)(?![<>])/$1<\/E>/g;
5117 485         984 s/(?])([Aa]r<\/S> [Mm]haos<\/N>)(?![<>])/$1<\/E>/g;
5118 485         962 s/(?])([Aa]r<\/S> [Mm]heara\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
5119 485         972 s/(?])([Aa]r<\/S> [Mm]hearbhall<\/N>)(?![<>])/$1<\/E>/g;
5120 485         1209 s/(?])([Aa]r<\/S> [Mm]hear\x{fa}<\/N>)(?![<>])/$1<\/E>/g;
5121 485         914 s/(?])([Aa]r<\/S> [Mm]heisce<\/N>)(?![<>])/$1<\/E>/g;
5122 485         931 s/(?])([Aa]r<\/S> [Mm]hire<\/N>)(?![<>])/$1<\/E>/g;
5123 485         885 s/(?])([Aa]r<\/S> [Mm]huir<\/N>)(?![<>])/$1<\/E>/g;
5124 485         1271 s/(?])([Aa]r<\/S> [Pp]hromhadh<\/N>)(?![<>])/$1<\/E>/g;
5125 485         1023 s/(?])([Aa]r<\/S> [Ss]heachr\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
5126 485         1367 s/(?])([Aa]r<\/S> [Ss]hileadh<\/N>)(?![<>])/$1<\/E>/g;
5127 485         978 s/(?])([Aa]r<\/S> [Ss]hn\x{e1}mh<\/N>)(?![<>])/$1<\/E>/g;
5128 485         887 s/(?])([Aa]r<\/S> [Ss]hodar<\/N>)(?![<>])/$1<\/E>/g;
5129 485         978 s/(?])([Aa]r<\/S> [Tt]haispe\x{e1}int<\/N>)(?![<>])/$1<\/E>/g;
5130 485         1085 s/(?])([Aa]r<\/S> [Tt]heaghr\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
5131 485         929 s/(?])([Aa]r<\/S> [Tt]h\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
5132 485         1293 s/(?])([Aa]r<\/S> [Tt]hogradh<\/N>)(?![<>])/$1<\/E>/g;
5133 485         1119 s/(?])([Aa]r<\/S> [Tt]huathal<\/N>)(?![<>])/$1<\/E>/g;
5134 485         1073 s/(?])([Tt]har<\/S> bhord<\/N>)(?![<>])/$1<\/E>/g;
5135 485         1037 s/(?])([Tt]har<\/S> bhr\x{e1}id<\/N>)(?![<>])/$1<\/E>/g;
5136 485         1023 s/(?])([Tt]har<\/S> chailc<\/N>)(?![<>])/$1<\/E>/g;
5137 485         1313 s/(?])([Tt]har<\/S> cheal<\/N>)(?![<>])/$1<\/E>/g;
5138 485         935 s/(?])([Tt]har<\/S> chionn<\/N>)(?![<>])/$1<\/E>/g;
5139 485         966 s/(?])([Tt]har<\/S> chuimse<\/N>)(?![<>])/$1<\/E>/g;
5140 485         981 s/(?])([Tt]har<\/S> fharraige<\/N>)(?![<>])/$1<\/E>/g;
5141 485         1421 s/(?])([Tt]har<\/S> fh\x{f3}ir<\/N>)(?![<>])/$1<\/E>/g;
5142 485         1276 s/(?])([Tt]har<\/S> mhe\x{e1}n<\/N>)(?![<>])/$1<\/E>/g;
5143 485         1023 s/(?])([Tt]har<\/S> mhuir<\/N>)(?![<>])/$1<\/E>/g;
5144 485         1452 s/(?])([Tt]har<\/S> sh\x{e1}ile<\/N>)(?![<>])/$1<\/E>/g;
5145 485         974 s/(?])([Tt]har<\/S> th\x{e9}arma<\/N>)(?![<>])/$1<\/E>/g;
5146 485         952 s/(?])([Tt]har<\/S> th\x{ed}r<\/N>)(?![<>])/$1<\/E>/g;
5147 485         1030 s/(?])((?:]*>[Aa]ice<\/N>))(?![<>])/$1<\/E>/g;
5148 485         1677 s/(?])([Aa]icearracht<\/N>)(?![<>])/$1<\/E>/g;
5149 485 50       1908 if (s/(?])([Aa]ithle<\/N>)(?![<>])/$1<\/E>/g) {
5150 0         0 s/(<[A-DF-Z][^>]*>[Aa]s<\/[A-DF-Z]> <[A-DF-Z][^>]*>a<\/[A-DF-Z]> ]*>aithle<\/N><\/E> <[A-DF-Z][^>]*>sin<\/[A-DF-Z]>)/strip_errors($1);/eg;
  0         0  
5151             }
5152 485         1243 s/(?])((?:]*>h?[Aa]raile<\/A>))(?![<>])/$1<\/E>/g;
5153 485         1218 s/(?])([Aa]r\x{fa}<\/R>)(?![<>])/$1<\/E>/g;
5154 485         1237 s/(?])((?:]*>h?[Aa]thl\x{e1}imh<\/N>))(?![<>])/$1<\/E>/g;
5155 485         1625 s/(?])([Aa]tr\x{e1}th<\/N>)(?![<>])/$1<\/E>/g;
5156 485         1363 s/(?])([Bb]h?eathach<\/A>)(?![<>])/$1<\/E>/g;
5157 485         1196 s/(?])(m?[Bb]h?ith<\/N>)(?![<>])/$1<\/E>/g;
5158 485         1152 s/(?])([Bb]h?\x{ed}thin<\/N>)(?![<>])/$1<\/E>/g;
5159 485         973 s/(?])(m?[Bb]h?\x{f3}il\x{e9}agar<\/N>)(?![<>])/$1<\/E>/g;
5160 485         1539 s/(?])((?:]*>m?[Bb]h?\x{f3}\x{ed}n<\/N>))(?![<>])/$1<\/E>/g;
5161 485         1206 s/(?])([Bb]r\x{e1}ch<\/N>)(?![<>])/$1<\/E>/g;
5162 485         1071 s/(?])(m?[Bb]h?r\x{ed}n<\/N>)(?![<>])/$1<\/E>/g;
5163 485         925 s/(?])((?:]*>m?[Bb]h?uaileam<\/N>))(?![<>])/$1<\/E>/g;
5164 485 50       1757 if (s/(?])([Cc]\x{e1}rb<\/Q>)(?![<>])/$1<\/E>/g) {
5165 0         0 s/(]*>[Cc]\x{e1}rb<\/Q><\/E> <[A-DF-Z][^>]*>[Aa]s<\/[A-DF-Z]>)/strip_errors($1);/eg;
  0         0  
5166             }
5167 485         1267 s/(?])(g[Cc]eartl\x{e1}r<\/N>)(?![<>])/$1<\/E>/g;
5168 485         1193 s/(?])((?:]*>g[Cc]oitinne<\/N>))(?![<>])/$1<\/E>/g;
5169 485         1098 s/(?])(g?[Cc]h?iolar<\/N>)(?![<>])/$1<\/E>/g;
5170 485         1005 s/(?])([Cc]hiot<\/U>)(?![<>])/$1<\/E>/g;
5171 485         1359 s/(?])(g?[Cc]h?olgsheasamh<\/N>)(?![<>])/$1<\/E>/g;
5172 485         1061 s/(?])(g?[Cc]h?omhchlos<\/N>)(?![<>])/$1<\/E>/g;
5173 485         1167 s/(?])(g?[Cc]h?omhthr\x{e1}th<\/N>)(?![<>])/$1<\/E>/g;
5174 485         1736 s/(?])(n?[Dd]h?allach<\/N>)(?![<>])/$1<\/E>/g;
5175 485         1080 s/(?])([Dd]hea<\/N>)(?![<>])/$1<\/E>/g;
5176 485         1174 s/(?])(n?[Dd]h?earglasadh<\/N>)(?![<>])/$1<\/E>/g;
5177 485         1035 s/(?])(n?[Dd]h?eargmheisce<\/N>)(?![<>])/$1<\/E>/g;
5178 485 100       1596 if (s/(?])([Dd]eo<\/N>)(?![<>])/$1<\/E>/g) {
5179 1         15 s/(<[A-DF-Z][^>]*>[Gg]o<\/[A-DF-Z]> ]*>[Dd]eo<\/N><\/E>)/strip_errors($1);/eg;
  1         3  
5180 1         5 s/([Dd]eo<\/N> ]*>[Dd]eo<\/N><\/E>)/strip_errors($1);/eg;
  1         23  
5181             }
5182 485         1104 s/(?])([Dd]heoidh<\/N>)(?![<>])/$1<\/E>/g;
5183 485         1041 s/(?])([\x{c9}\x{e9}]atar<\/N>)(?![<>])/$1<\/E>/g;
5184 485         944 s/(?])([\x{c9}\x{e9}]ind\x{ed}<\/N>)(?![<>])/$1<\/E>/g;
5185 485         1052 s/(?])([\x{c9}\x{e9}]ineacht<\/N>)(?![<>])/$1<\/E>/g;
5186 485         1321 s/(?])((?:[Tt]har|[Aa]r|[Ii]n)<\/S> [\x{c9}\x{e9}]is<\/N>)(?![<>])/$1<\/E>/g;
5187 485         1227 s/(?])([\x{c9}\x{e9}]is<\/N>)(?![<>])/$1<\/E>/g;
5188 485         1043 s/(?])(bh[Ff]\x{e1}ch<\/A>)(?![<>])/$1<\/E>/g;
5189 485 50       1406 if (s/(?])(F\x{e1}ileach<\/A>)(?![<>])/$1<\/E>/g) {
5190 0         0 s/(<[A-DF-Z][^>]*>(?:bh)?[Ff]h?ianna<\/[A-DF-Z]> ]*>F\x{e1}ileach<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5191             }
5192 485         1321 s/(?])([Ff]alcanta<\/A>)(?![<>])/$1<\/E>/g;
5193 485         1199 s/(?])((?:bh)?[Ff]h?aopach<\/N>)(?![<>])/$1<\/E>/g;
5194 485 50       1533 if (s/(?])(bhfearr<\/A>)(?![<>])/$1<\/E>/g) {
5195 0         0 s/((?:mba|gura)<\/V> <[A-DF-Z][^>]*>sh?eacht<\/[A-DF-Z]> ]*>bhfearr<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5196             }
5197 485 50       1696 if (s/(?])(featha<\/N>)(?![<>])/$1<\/E>/g) {
5198 0         0 s/([Ss]na<\/S> ]*>featha<\/N><\/E> f\x{e1}saigh<\/N>)/strip_errors($1);/eg;
  0         0  
5199             }
5200 485 50       1343 if (s/(?])(F\x{e9}ineach<\/A>)(?![<>])/$1<\/E>/g) {
5201 0         0 s/(<[A-DF-Z][^>]*>Sh?inn<\/[A-DF-Z]> ]*>F\x{e9}ineach<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5202             }
5203 485 50       1567 if (s/(?])(Feirsteach<\/A>)(?![<>])/$1<\/E>/g) {
5204 0         0 s/(<[A-DF-Z][^>]*>m?Bh?\x{e9}al<\/[A-DF-Z]> ]*>Feirsteach<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5205             }
5206 485         1232 s/(?])([Ff]eanna<\/N>)(?![<>])/$1<\/E>/g;
5207 485         1361 s/(?])((?:bh)?[Ff]h?uaidreamh<\/N>)(?![<>])/$1<\/E>/g;
5208 485         1378 s/(?])((?:bh)?[Ff]h?oluain<\/N>)(?![<>])/$1<\/E>/g;
5209 485         1188 s/(?])(bh[Ff]ud<\/N>)(?![<>])/$1<\/E>/g;
5210 485         978 s/(?])([Ff]eillbhinn<\/R>)(?![<>])/$1<\/E>/g;
5211 485         1131 s/(?])([Ff]\x{ed}orchaoin<\/N>)(?![<>])/$1<\/E>/g;
5212 485         1123 s/(?])((?:bh)?[Ff]h?ogas<\/N>)(?![<>])/$1<\/E>/g;
5213 485         1116 s/(?])((?:]*>[Ff]\x{f3}ill<\/A>))(?![<>])/$1<\/E>/g;
5214 485         1169 s/(?])((?:<[AN][^>]*>[Ff]ras<\/[AN]>))(?![<>])/$1<\/E>/g;
5215 485         1139 s/(?])([Ff]ata<\/N>)(?![<>])/$1<\/E>/g;
5216 485         1127 s/(?])([Ff]uta<\/N>)(?![<>])/$1<\/E>/g;
5217 485         1423 s/(?])([Ff]ud<\/N>)(?![<>])/$1<\/E>/g;
5218 485 50       1454 if (s/(?])(bhfusa<\/A>)(?![<>])/$1<\/E>/g) {
5219 0         0 s/((?:mba|gura)<\/V> <[A-DF-Z][^>]*>sh?eacht<\/[A-DF-Z]> ]*>bhfusa<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5220             }
5221 485         1232 s/(?])([Gg]aidhte<\/R>)(?![<>])/$1<\/E>/g;
5222 485         1139 s/(?])(n?[Gg]h?arman<\/N>)(?![<>])/$1<\/E>/g;
5223 485         1525 s/(?])(n?[Gg]h?lanmheabhair<\/N>)(?![<>])/$1<\/E>/g;
5224 485         1084 s/(?])([Gg]leag<\/N>)(?![<>])/$1<\/E>/g;
5225 485         1196 s/(?])([Gg]rif\x{ed}n<\/N>)(?![<>])/$1<\/E>/g;
5226 485         976 s/(?])(<[A-DF-Z][^>]*>h\x{e1}irithe<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
5227 485         1102 s/(?])(hamh\x{e1}in<\/A>)(?![<>])/$1<\/E>/g;
5228 485         1146 s/(?])((?:<[AR][^>]*>hamhlaidh<\/[AR]>))(?![<>])/$1<\/E>/g;
5229 485         1050 s/(?])(hansa<\/A>)(?![<>])/$1<\/E>/g;
5230 485         1655 s/(?])([HC]ong<\/N>)(?![<>])/$1<\/E>/g;
5231 485         952 s/(?])([Hh][\x{e1}\x{fa}]m<\/N>)(?![<>])/$1<\/E>/g;
5232 485         1404 s/(?])([Hh]\x{fa}ta<\/N>)(?![<>])/$1<\/E>/g;
5233 485 50       1631 if (s/(?])([Ii]nn<\/N>)(?![<>])/$1<\/E>/g) {
5234 0         0 s/([Aa]r<\/S> ]*>[Ii]nn<\/N><\/E> ar<\/S> (?:]*>ea<\/P>))/strip_errors($1);/eg;
  0         0  
5235 0         0 s/([Aa]r<\/S> ]*>[Ii]nn<\/N><\/E> ar \x{e9}igean<\/R>)/strip_errors($1);/eg;
  0         0  
5236             }
5237 485         1740 s/(?])([Ll]\x{e1}nseol<\/N>)(?![<>])/$1<\/E>/g;
5238 485 100       1803 if (s/(?])(leanas<\/A>)(?![<>])/$1<\/E>/g) {
5239 2         17 s/(seo<\/A> <[A-DF-Z][^>]*>a<\/[A-DF-Z]> ]*>leanas<\/A><\/E>)/strip_errors($1);/eg;
  1         10  
5240 2         8 s/(seo<\/A> ]*>leanas<\/A><\/E>)/strip_errors($1);/eg;
  1         8  
5241 2         8 s/([Mm]ar<\/C> <[A-DF-Z][^>]*>a<\/[A-DF-Z]> ]*>leanas<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5242 2         6 s/([Mm]ar<\/C> ]*>leanas<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5243             }
5244 485         1482 s/(?])([Ll]\x{e9}ig<\/N>)(?![<>])/$1<\/E>/g;
5245 485         1343 s/(?])((?:]*>[Ll]eith<\/N>))(?![<>])/$1<\/E>/g;
5246 485         1229 s/(?])(<[A-DF-Z][^>]*>[Ll]eithligh<\/[A-DF-Z]>)(?![<>])/$1<\/E>/g;
5247 485         1092 s/(?])([Ll]iobarna<\/N>)(?![<>])/$1<\/E>/g;
5248 485         1037 s/(?])((?:]*>li\x{fa}tar<\/N>))(?![<>])/$1<\/E>/g;
5249 485         879 s/(?])([Ll]uthairt<\/N>)(?![<>])/$1<\/E>/g;
5250 485         1416 s/(?])([Mm]aos<\/N>)(?![<>])/$1<\/E>/g;
5251 485         1210 s/(?])([Mm]h?arthain<\/N>)(?![<>])/$1<\/E>/g;
5252 485         1137 s/(?])([Mm]oite<\/U>)(?![<>])/$1<\/E>/g;
5253 485         1136 s/(?])([Mm]ugadh<\/N>)(?![<>])/$1<\/E>/g;
5254 485         949 s/(?])((?:]*>nd\x{e1}ir\x{ed}re<\/N>))(?![<>])/$1<\/E>/g;
5255 485         1629 s/(?])([Nn]eamhchead<\/N>)(?![<>])/$1<\/E>/g;
5256 485         1097 s/(?])(n[gG]ach<\/N>)(?![<>])/$1<\/E>/g;
5257 485         1033 s/(?])(n[gG]an<\/S>)(?![<>])/$1<\/E>/g;
5258 485         1083 s/(?])(ngearr<\/N>)(?![<>])/$1<\/E>/g;
5259 485         1087 s/(?])([Nn][ie][\x{e1}\x{fa}]dar<\/N>)(?![<>])/$1<\/E>/g;
5260 485         958 s/(?])([Nn]uige<\/R>)(?![<>])/$1<\/E>/g;
5261 485         1415 s/(?])([Pp]\x{e9}asca<\/A>)(?![<>])/$1<\/E>/g;
5262 485         1019 s/(?])([Pp]l(?:ea)?inc<\/R>)(?![<>])/$1<\/E>/g;
5263 485         971 s/(?])([Rr]agaim<\/U>)(?![<>])/$1<\/E>/g;
5264 485         1224 s/(?])([Rr]aiple<\/N>)(?![<>])/$1<\/E>/g;
5265 485         1198 s/(?])([Rr]e<\/U>)(?![<>])/$1<\/E>/g;
5266 485         1152 s/(?])([Rr]\x{f3}ib\x{e9}is<\/U>)(?![<>])/$1<\/E>/g;
5267 485         1239 s/(?])((?:]*>[RrBb]uaille<\/N>))(?![<>])/$1<\/E>/g;
5268 485         1227 s/(?])([Rr]up<\/N>)(?![<>])/$1<\/E>/g;
5269 485         1521 s/(?])([Ss]\x{e1}inn<\/N>)(?![<>])/$1<\/E>/g;
5270 485         1679 s/(?])([Ss]aochan<\/N>)(?![<>])/$1<\/E>/g;
5271 485         1850 s/(?])(t?sh?l\x{e1}nchruinne<\/N>)(?![<>])/$1<\/E>/g;
5272 485         1017 s/(?])((?:]*>[Ss]ciot\x{e1}n<\/N>))(?![<>])/$1<\/E>/g;
5273 485         1537 s/(?])([Ss]cun<\/R>)(?![<>])/$1<\/E>/g;
5274 485         1132 s/(?])([Ss]each<\/S>)(?![<>])/$1<\/E>/g;
5275 485 50       1680 if (s/(?])(s\x{e9}ibe<\/N>)(?![<>])/$1<\/E>/g) {
5276 0         0 s/([Ii]<\/S> mb\x{e9}al<\/N> na<\/T> ]*>s\x{e9}ibe<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
5277             }
5278 485         1206 s/(?])((?:]*>[Ss]hin<\/A>))(?![<>])/$1<\/E>/g;
5279 485         1053 s/(?])([Ss]inc\x{ed}n<\/N>)(?![<>])/$1<\/E>/g;
5280 485         1019 s/(?])((?:]*>[Ss]iobh\x{e1}i?n<\/N>))(?![<>])/$1<\/E>/g;
5281 485         1262 s/(?])([Ss]i\x{fa}n<\/N>)(?![<>])/$1<\/E>/g;
5282 485 100       1640 if (s/(?])([Ss]h?on<\/N>)(?![<>])/$1<\/E>/g) {
5283 2         11 s/([Aa]r<\/S> (?:mo|do|a)<\/D> ]*>[Ss]hon<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
5284 2         11 s/([Aa]r<\/S> (?:\x{e1}r|bhur|a)<\/D> ]*>[Ss]on<\/N><\/E>)/strip_errors($1);/eg;
  0         0  
5285             }
5286 485         1283 s/(?])([Ss]p[ie][oa]r<\/N>)(?![<>])/$1<\/E>/g;
5287 485         1148 s/(?])([Ss]teig<\/N>)(?![<>])/$1<\/E>/g;
5288 485         1050 s/(?])([Ss]teillbheatha<\/N>)(?![<>])/$1<\/E>/g;
5289 485         1244 s/(?])((?:]*>[Ss]trae<\/N>))(?![<>])/$1<\/E>/g;
5290 485         1152 s/(?])([Ss][\x{fa}\x{e1}]m<\/N>)(?![<>])/$1<\/E>/g;
5291 485         1318 s/(?])((?:]*>d[Tt]aisce<\/N>))(?![<>])/$1<\/E>/g;
5292 485         1327 s/(?])(d?[Tt]h?eachtadh<\/N>)(?![<>])/$1<\/E>/g;
5293 485         1120 s/(?])(d[Tt]eagmh\x{e1}il<\/N>)(?![<>])/$1<\/E>/g;
5294 485         1159 s/(?])(d[Tt]\x{ed}<\/S>)(?![<>])/$1<\/E>/g;
5295 485         1131 s/(?])(d[Tt]\x{f3}lamh<\/N>)(?![<>])/$1<\/E>/g;
5296 485         980 s/(?])(d[Tt]r\x{e1}tha<\/N>)(?![<>])/$1<\/E>/g;
5297 485         1301 s/(?])(d[Tt]reis<\/N>)(?![<>])/$1<\/E>/g;
5298 485         1197 s/(?])((?:]*>d[Tt]uilleama\x{ed}<\/N>))(?![<>])/$1<\/E>/g;
5299 485         1116 s/(?])([Tt]h?amhach<\/N>)(?![<>])/$1<\/E>/g;
5300 485         1004 s/(?])([Tt]hiarcais<\/N>)(?![<>])/$1<\/E>/g;
5301 485         855 s/(?])([Tt]inneall<\/N>)(?![<>])/$1<\/E>/g;
5302 485         1303 s/(?])([Tt]reis<\/N>)(?![<>])/$1<\/E>/g;
5303 485         1275 s/(?])([^<]+<\/T> (?:]*gnt="n"[^>]*>[^<]+<\/N>) [^<]+<\/T> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
5304 485         1073 s/(?])([^<]+<\/T> (?:]*gnt="n"[^>]*>[^<]+<\/N>) gach<\/A> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
5305 485         1367 s/(?])([^<]+<\/T> (?:]*gnt="n"[^>]*>[^<]+<\/N>) [^<]+<\/D> (?:]*gnt="y"[^>]*>[^<]+<\/N>))(?![<>])/$1<\/E>/g;
5306 485 100       3103 if (s/(?])((?:]*>[^<]+<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A>)(?![<>])/$1<\/E>/g) {
5307 33         173 s/(]*>(?:]*>n?dh?iaidh<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  3         18  
5308 33         370 s/((?:<[ADN][^>]*>[^<]+<\/[ADN]>) ]*>(?:]*>[^<]+<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  7         19  
5309 33         190 s/([^<]+<\/T> ]*>(?:]*>[^<]+<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  20         84  
5310 33         157 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*>[^<]+<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  6         31  
5311 33         84 s/([Ss]na<\/S> ]*>(?:]*>[^<]+<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5312 33         109 s/([Cc]\x{e9}n<\/Q> ]*>(?:]*>[^<]+<\/N>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  1         5  
5313             }
5314 485 100       4304 if (s/(?])((?:]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A>)(?![<>])/$1<\/E>/g) {
5315 1         22 s/((?:<[ADN][^>]*>[^<]+<\/[ADN]>) ]*>(?:]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5316 1         10 s/([^<]+<\/T> ]*>(?:]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  1         8  
5317 1         9 s/((?:[Dd][eo]n|[Ss]an?|[Ff]aoin|[\x{d3}\x{f3}]n)<\/S> ]*>(?:]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5318 1         4 s/([Ss]na<\/S> ]*>(?:]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5319 1         8 s/([Cc]\x{e9}n<\/Q> ]*>(?:]*>[^<]+<\/N>) (?:]*>[^<]+<\/A>) (?:[Ss]eo|[Ss]in|[\x{da}\x{fa}]d)<\/A><\/E>)/strip_errors($1);/eg;
  0         0  
5320             }
5321             }
5322             }
5323              
5324             sub unigram
5325             {
5326 485     485 0 1660 for ($_[0]) {
5327 485         2588 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/S>/g;
5328 485         2315 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5329 485         1831 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5330 485         1567 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/T>/g;
5331 485         1858 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/A>/g;
5332 485         1309 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/C>/g;
5333 485         1310 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/R>/g;
5334 485         1089 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5335 485         1311 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/

$1<\/P>/g;

5336 485         1465 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5337 485         1589 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/O>/g;
5338 485         1296 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5339 485         1166 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5340 485         1250 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5341 485         1431 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/D>/g;
5342 485         1393 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5343 485         1277 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/U>/g;
5344 485         1044 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/G>/g;
5345 485         1252 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/A>/g;
5346 485         1086 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5347 485         1266 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/A>/g;
5348 485         1381 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5349 485         1104 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5350 485         1134 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/Q>/g;
5351 485         994 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/A>/g;
5352 485         1016 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5353 485         2736 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5354 485         1198 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5355 485         1094 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5356 485         1274 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/H>/g;
5357 485         1059 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5358 485         1114 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5359 485         1660 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/F>/g;
5360 485         930 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5361 485         1070 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5362 485         1418 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5363 485         1068 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/A>/g;
5364 485         924 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/O>/g;
5365 485         1491 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5366 485         1034 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5367 485         1070 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5368 485         1159 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5369 485         1019 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5370 485         1031 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5371 485         992 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/A>/g;
5372 485         1144 s/(?:<[^>]*>)*

(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/

$1<\/P>/g;

5373 485         1463 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5374 485         1122 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5375 485         1083 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/I>/g;
5376 485         1531 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5377 485         1045 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5378 485         1041 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/V>/g;
5379 485         1153 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5380 485         1061 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5381 485         1829 s/(?:<[^>]*>)*(?:<[^>]*>)*<\/Z>([^<]+)<\/B>/$1<\/N>/g;
5382             }
5383             }
5384              
5385             # recursive helper function for "tag_one_word".
5386             #
5387             # Arguments: "original" word to be tagged; the "current"
5388             # decomposed version for lookup (and possible further decomp)
5389             # a "level" which determines whether, if a match is found,
5390             # whether it should be untagged (-1), tagged as OK but noting decomp (0),
5391             # tagged as non-standard (1), or tagged as a misspelling (2),
5392             # a scalar reference "posans" to be filled in with the list of POS tags
5393             # found for "current" (useful if return value has "
5394             # and the maximum allowed recursion depth (decremented on each recursion)
5395             #
5396             # Returns the word tagged appropriately if a match is found, returns
5397             # false ("") if the recursion bottoms out with no matches
5398             sub tag_recurse
5399             {
5400 69     69 0 173 my ( $self, $original, $current, $level, $posans, $maxdepth ) = @_;
5401              
5402 69         193 my $ans = $self->lookup( $original, $current, $level, $posans );
5403 69 50       174 return "" if ($maxdepth == 0);
5404 69 100       144 return $ans if $ans;
5405 53         73 my $newcurrent;
5406 53         92 foreach my $rule (@MORPH) {
5407 28283         36080 my $p = $rule->{'compiled'};
5408 28283 100       80949 if ( $current =~ m/$p/ ) {
5409 37         90 my $r = $rule->{'repl'};
5410 37         69 $newcurrent = $current;
5411 37         214 $newcurrent =~ s/$p/$r/eeg;
  38         3180  
5412 37 100       313 $ans = $self->tag_recurse($original, $newcurrent, ($level > $rule->{'level'}) ? $level : $rule->{'level'}, $posans, $maxdepth - 1);
5413 37 100       127 if ($ans) {
5414 8 100       24 unless ($$posans eq '') {
5415 4         8 my $pos = $rule->{'poscompiled'};
5416 4         7 my $temp = $$posans;
5417 4         6 $$posans = '';
5418 4         27 while ($temp =~ m/(<[ACDF-Y][^>]*>)/g) {
5419 5         10 my $cand = $1;
5420 5 100       33 if ($cand =~ m/$pos/) {
5421 4         9 $r = $rule->{'replpos'};
5422 4 50       13 $cand =~ s/$pos/$r/ee unless ($r eq '"<&>"');
  0         0  
5423 4         19 $$posans .= $cand;
5424             }
5425             }
5426             }
5427 8 100       35 return $ans if $$posans;
5428             }
5429             }
5430             }
5431 46         174 return "";
5432             }
5433              
5434             sub clean_tag_recurse
5435             {
5436 2042     2042 0 3687 my ( $self, $current, $maxdepth ) = @_;
5437              
5438 2042         5048 my $ans = $self->clean_lookup( $current );
5439 2042 50       4964 return $ans if ($maxdepth == 0);
5440 2042         2255 my $newcurrent;
5441 2042         3823 foreach my $rule (@PUREMORPH) {
5442 91890         122312 my $p = $rule->{'compiled'};
5443 91890 100       306221 if ( $current =~ m/$p/ ) {
5444 336         928 my $r = $rule->{'repl'};
5445 336         713 my $pos = $rule->{'poscompiled'};
5446 336         797 $newcurrent = $current;
5447 336         2045 $newcurrent =~ s/$p/$r/eeg;
  336         36094  
5448 336         1935 my $toadd = $self->clean_tag_recurse($newcurrent, $maxdepth - 1);
5449 336         1977 while ($toadd =~ m/(<[^>]+>)/g) {
5450 466         923 my $cand = $1;
5451 466 50       2657 if ($cand =~ m/$pos/) {
5452 466         881 $r = $rule->{'replpos'};
5453 466 50       1195 $cand =~ s/$pos/$r/ee unless ($r eq '"<&>"');
  0         0  
5454 466         2190 $ans .= $cand;
5455             }
5456             }
5457             }
5458             }
5459 2042         6359 return $ans;
5460             }
5461              
5462              
5463              
5464             1;
5465              
5466             __END__