]>
iEval git - filters.git/blob - chef
2 # Swedish Chef filter. Bork Bork Bork!
3 # Copyright 1999 by Joey Hess under the terms of the GNU GPL.
5 # Note that the order of the commands in this program is very important!
7 # Change 'e' at the end of a word to 'e-a', but don't mess with the word
18 # Stuff that happens at the end of a word.
22 # Stuff that happens if not the first letter of a word.
25 # Change 'o' to 'u' and at the same time, change 'u' to 'oo'. But only
26 # if it's not the first letter of the word.
29 $1 . $2 eq 'o' ?
'u' : 'o'
31 # Note that this also handles doubling "oo" at the beginning of words.
33 # Have to double "Oo" seperatly.
35 # Fix the word "bork", which will have been mangled to "burk"
36 # by above commands. Note that any occurence of "burk" in the input
37 # gets changed to "boork", so it's completly safe to do this:
38 s/\b([Bb])urk\b/$1ork/g;
40 # Stuff to do to letters that are the first letter of any word.
44 # Stuff that always happens.
45 s/tiun/shun/g; # this actually has the effect of changing "tion" to "shun".
50 # Stuff to do to letters that are not the last letter of a word.
54 s/en/un/g; # this actually has the effect of changing "an" to "un".
55 s/En/Un/g; # this actually has the effect of changing "An" to "Un".
56 s/eoo/oo/g; # this actually has the effect of changing "au" to "oo".
57 s/Eoo/Oo/g; # this actually has the effect of changing "Au" to "Oo".
59 # Change "ow" to "oo".
62 # Change 'i' to 'ee', but not at the beginning of a word,
63 # and only affect the first 'i' in each word.
64 s/(\b\w[a-hj-zA-HJ-Z]*)i/$1ee/g;
66 # Special punctuation of the end of sentances but only at end of lines.
67 s/([.?!])$/$1\nBork Bork Bork!/g;
This page took 0.047659 seconds and 4 git commands to generate.