tlhIngan-Hol Archive: Thu Mar 27 09:34:33 2008

Back to archive top level

To this year's listing



[Date Prev][Date Next][Thread Prev][Thread Next]

Re: Klingon phonology in regular expressions

David Trimboli ([email protected]) [KLI Member] [Hol po'wI']



Mark J. Reed wrote:
> Gah.  Let me try that again.
> 
> $ gzcat tlhIngan.gz |
>      perl -ne 's/tlh\b/ts/g; s/\btlh/ghl/g; s/\bH/h/g; s/H\b//g; s/\bQ/H/g;
>                    print if /(success|Klingon) \(n\)|yes,
> true.*excl|with honor \(adv\)/'
> 
> 
> Which yields this result:
> 
> hISla          yes, true (answer to yes/no question) (excl)
> hIja'           yes, true (answer to yes/no question) (excl)
> Hapla'          success (n)
> bats             honor (n); honored, with honor (adv)
> ghlIngan           Klingon (n)

But that'll only work with words without prefixes or suffixes, right? It 
won't deal correctly with, say, {jItlhutlh}, which will end up as 
{jItlhuts} instead of {jIghluts}.

I think you can get everything except the {-oy} transformation if you 
replace every \b with (\b|a|e|I|o|u)

-- 
SuStel
Stardate 8237.0





Back to archive top level