3 * Lex filter to transform plain English into Jive English.
4 * No racial or societal slurs are intended. For amusement only.
6 * Copyright 1986 by Daniel Klein and Clement Cole.
8 * Reproduction permitted so long as this notice is retained.
21 ".so ".*$ printf("%s", yytext);
22 {BW}send printf("%ct'row",yytext[0]);
23 program+ printf("honky code");
24 [Uu]nix printf("slow mo-fo");
25 UNIX printf("dat slow mo-fo");
26 actual printf("ak'shul");
27 {BW}take printf("%csnatch",yytext[0]);
29 {BW}take[ns] printf("%csnatch'd",yytext[0]);
30 [Mm]exican printf("%cet-back", caseify('w'));
31 [Ii]talian printf("%creaser", caseify('g'));
32 {BW}big{EW} { printf("%cbig ass",yytext[0]);plastc();}
33 fool printf("honkyfool");
34 modem printf("doodad");
35 {BW}he{EW} { printf("%cmah' man he",yytext[0]);plastc();}
39 "d the"{EW} { printf("%c da damn", yytext[0]);plastc();}
43 something printf("sump'n");
44 {BW}lie printf("%chonky jive",yytext[0]);
45 -o- printf("-on rebound-");
46 [a-z]"." { printf("%s", yytext);expletive();}
47 ! printf(". Right On!");
48 [Ss]ure printf("%cho'", yytext[0]);
52 "got to"{EW} { printf("gots'ta");plastc();}
53 "I am" printf("I's gots'ta be");
58 "are not" printf("ain't");
59 {BW}see{EW} { printf("%csee's",yytext[0]);plastc();}
60 {BW}are{EW} { printf("%cis",yytext[0]);plastc();}
61 {BW}hat{EW} { printf("%cfedora",yytext[0]);plastc();}
62 {BW}shoe printf("%ckicker",yytext[0]);
64 {BW}has{EW} { printf("%cgots'ta",yytext[0]);plastc();}
68 {BW}come{EW} { printf("%cmosey on down",yytext[0]);plastc();}
70 {BW}car{EW} { printf("%cwheels",yytext[0]);plastc();}
72 {BW}food printf("%ccatfish an' colluhd greens",yytext[0]);
73 {BW}eat{EW} { printf("%cfeed da bud",yytext[0]);plastc();}
74 drink printf("guzzle");
76 negro printf("brother");
77 white printf("honky");
78 nigger printf("gentleman");
79 nice printf("supa' fine");
80 {BW}person printf("%csucka'",yytext[0]);
81 [Pp]eople printf("%cucka's", caseify('s'));
82 {BW}thing thing(yytext[0]);
83 house{EW} { printf("crib");plastc();}
84 home printf("plantation");
85 name printf("dojigger");
86 {BW}path printf("%calley",yytext[0]);
87 [Cc]omputer printf("%clunker", yytext[0]);
89 president printf("super-dude");
90 "prime minister" printf("prahm mistah");
91 government printf("guv'ment");
92 knew printf("knowed");
93 [Bb]ecause printf("'%cuz", caseify('c'));
94 [Yy]our printf("%co'", yytext[0]);
95 [Ff]our printf("%coe", yytext[0]);
100 first printf("fust");
101 police printf("honky pigs");
102 {BW}string printf("%cchittlin'",yytext[0]);
103 {BW}read printf("%ceyeball",yytext[0]);
104 write printf("scribble");
105 think{EW} { printf("thin'");plastc();}
107 other printf("uthu'");
108 [Tt]hr printf("%c'r", yytext[0]);
109 [Tt]h printf("%c", caseify('d'));
111 {BW}a{EW} { printf("%csome",yytext[0]);plastc();}
112 {BW}to{EW} { printf("%ct'",yytext[0]);
113 if(yytext[yyleng-1]!=' ')
117 [Aa]lmost printf("%cos'", caseify('m'));
119 [Yy]"ou're" printf("%couse", yytext[0]);
122 [Aa]nd printf("%cn'", yytext[0]);
123 known printf("knode");
124 want printf("wants'");
125 beat printf("whup'ed");
127 er{EW} { printf("uh");plastc();}
128 [a-z]sti printf("%cs'i", yytext[0]);
133 {BW}ex printf("%c'es",yytext[0]);
134 [ae]ct{EW} { printf("%cc'", yytext[0]); plastc(); }
135 like printf("likes");
137 did printf("dun did");
138 "kind of" printf("kind'a");
139 women printf("honky chicks");
140 {BW}man{EW} { printf("%cdude",yytext[0]);plastc();}
142 {BW}mens{EW} { printf("%cdudes",yytext[0]);plastc();}
143 injured printf("hosed");
145 dead printf("wasted");
146 good printf("baaaad");
147 open{EW} { printf("jimmey");plastc();}
148 opened{EW} { printf("jimmey'd");plastc();}
149 {BW}very printf("%creal",yytext[0]);
152 {BW}can printf("%ckin",yytext[0]);
153 {BW}just{EW} { printf("%cplum",yytext[0]);plastc();}
154 [Dd]etroit printf("Mo-town");
155 [Ww]"estern "[Ee]"lectric" printf("da' cave");
156 {BW}believe printf("%crecon'",yytext[0]);
157 [Ii]"ndianapolis" printf("Nap-town");
159 Dan printf("Liva' Lips");
160 Reagan printf("Kingfish");
162 Ron{EW} { printf("Rolo");plastc();}
163 John printf("Rastus");
164 Jim printf("Bo-Jangles");
167 [Pp]ravda printf("dat commie rag");
168 broken printf("bugger'd");
169 strange{EW} { printf("funky");plastc();}
170 dance{EW} { printf("boogy");plastc();}
172 {BW}so{EW} { printf("%cso's",yytext[0]);plastc();}
173 heard printf("'hoid");
174 head printf("'haid");
175 boss printf("main man");
176 money printf("bre'd");
177 [a-z]":" { *(yytext+1) = ',';
178 printf("%s dig dis:",yytext);
180 amateur printf("begina'");
181 radio printf("transista'");
182 {BW}of{EW} { printf("%cuh",yytext[0]);plastc();}
185 "don't" printf("doan'");
188 {BW}were{EW} { printf("%cwuz",yytext[0]);plastc();}
189 {BW}understand printf("%cdig",yytext[0]);
190 {BW}my printf("%cmah'",yytext[0]);
192 against printf("agin'");
193 {BW}[Ii]{EW} { printf("%cah'",yytext[0]);plastc();}
194 meta printf("meta-fuckin'");
199 unput(yytext[yyleng-1]);
205 if (yytext[0] <= 'Z')
214 static short count = 0;
217 switch (count++ % 4) {
225 printf("wahtahmellun");
231 static short count = 0;
232 static short which = 0;
234 if (count++ % 4 == 0) {
235 switch (which++ % 5) {
236 case 0: printf(" What it is, Mama!"); break;
237 case 1: printf(" Ya' know?"); break;
238 case 2: printf(" Sheeeiit."); break;
239 case 3: printf(" Ya' dig?"); break;
240 case 4: printf(" Git down!"); break;
248 * If a sentence starts with a keyword it doan' get converted, or:
249 * it do, but gets a leading space