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.
22 ".so ".*$ printf("%s", yytext);
23 {BW}send printf("%ct'row",yytext[0]);
24 program+ printf("honky code");
25 [Uu]nix printf("slow mo-fo");
26 UNIX printf("dat slow mo-fo");
27 actual printf("ak'shul");
28 {BW}take printf("%csnatch",yytext[0]);
30 {BW}take[ns] printf("%csnatch'd",yytext[0]);
31 [Mm]exican printf("%cet-back", caseify('w'));
32 [Ii]talian printf("%creaser", caseify('g'));
33 {BW}big{EW} { printf("%cbig ass",yytext[0]);plastc();}
34 fool printf("honkyfool");
35 modem printf("doodad");
36 {BW}he{EW} { printf("%cmah' man he",yytext[0]);plastc();}
40 "d the"{EW} { printf("%c da damn", yytext[0]);plastc();}
44 something printf("sump'n");
45 {BW}lie printf("%chonky jive",yytext[0]);
46 -o- printf("-on rebound-");
47 [a-z]"." { printf("%s", yytext);expletive();}
48 ! printf(". Right On!");
49 [Ss]ure printf("%cho'", yytext[0]);
53 "got to"{EW} { printf("gots'ta");plastc();}
54 "I am" printf("I's gots'ta be");
59 "are not" printf("ain't");
60 {BW}see{EW} { printf("%csee's",yytext[0]);plastc();}
61 {BW}are{EW} { printf("%cis",yytext[0]);plastc();}
62 {BW}hat{EW} { printf("%cfedora",yytext[0]);plastc();}
63 {BW}shoe printf("%ckicker",yytext[0]);
65 {BW}has{EW} { printf("%cgots'ta",yytext[0]);plastc();}
69 {BW}come{EW} { printf("%cmosey on down",yytext[0]);plastc();}
71 {BW}car{EW} { printf("%cwheels",yytext[0]);plastc();}
73 {BW}food printf("%ccatfish an' colluhd greens",yytext[0]);
74 {BW}eat{EW} { printf("%cfeed da bud",yytext[0]);plastc();}
75 drink printf("guzzle");
77 negro printf("brother");
78 white printf("honky");
79 nigger printf("gentleman");
80 nice printf("supa' fine");
81 {BW}person printf("%csucka'",yytext[0]);
82 [Pp]eople printf("%cucka's", caseify('s'));
83 {BW}thing thing(yytext[0]);
84 house{EW} { printf("crib");plastc();}
85 home printf("plantation");
86 name printf("dojigger");
87 {BW}path printf("%calley",yytext[0]);
88 [Cc]omputer printf("%clunker", yytext[0]);
90 president printf("super-dude");
91 "prime minister" printf("prahm mistah");
92 government printf("guv'ment");
93 knew printf("knowed");
94 [Bb]ecause printf("'%cuz", caseify('c'));
95 [Yy]our printf("%co'", yytext[0]);
96 [Ff]our printf("%coe", yytext[0]);
101 first printf("fust");
102 police printf("honky pigs");
103 {BW}string printf("%cchittlin'",yytext[0]);
104 {BW}read printf("%ceyeball",yytext[0]);
105 write printf("scribble");
106 think{EW} { printf("thin'");plastc();}
108 other printf("uthu'");
109 [Tt]hr printf("%c'r", yytext[0]);
110 [Tt]h printf("%c", caseify('d'));
112 {BW}a{EW} { printf("%csome",yytext[0]);plastc();}
113 {BW}to{EW} { printf("%ct'",yytext[0]);
114 if(yytext[yyleng-1]!=' ')
118 [Aa]lmost printf("%cos'", caseify('m'));
120 [Yy]"ou're" printf("%couse", yytext[0]);
123 [Aa]nd printf("%cn'", yytext[0]);
124 known printf("knode");
125 want printf("wants'");
126 beat printf("whup'ed");
128 er{EW} { printf("uh");plastc();}
129 [a-z]sti printf("%cs'i", yytext[0]);
134 {BW}ex printf("%c'es",yytext[0]);
135 [ae]ct{EW} { printf("%cc'", yytext[0]); plastc(); }
136 like printf("likes");
138 did printf("dun did");
139 "kind of" printf("kind'a");
140 women printf("honky chicks");
141 {BW}man{EW} { printf("%cdude",yytext[0]);plastc();}
143 {BW}mens{EW} { printf("%cdudes",yytext[0]);plastc();}
144 injured printf("hosed");
146 dead printf("wasted");
147 good printf("baaaad");
148 open{EW} { printf("jimmey");plastc();}
149 opened{EW} { printf("jimmey'd");plastc();}
150 {BW}very printf("%creal",yytext[0]);
153 {BW}can printf("%ckin",yytext[0]);
154 {BW}just{EW} { printf("%cplum",yytext[0]);plastc();}
155 [Dd]etroit printf("Mo-town");
156 [Ww]"estern "[Ee]"lectric" printf("da' cave");
157 {BW}believe printf("%crecon'",yytext[0]);
158 [Ii]"ndianapolis" printf("Nap-town");
160 Dan printf("Liva' Lips");
161 Reagan printf("Kingfish");
163 Ron{EW} { printf("Rolo");plastc();}
164 John printf("Rastus");
165 Jim printf("Bo-Jangles");
168 [Pp]ravda printf("dat commie rag");
169 broken printf("bugger'd");
170 strange{EW} { printf("funky");plastc();}
171 dance{EW} { printf("boogy");plastc();}
173 {BW}so{EW} { printf("%cso's",yytext[0]);plastc();}
174 heard printf("'hoid");
175 head printf("'haid");
176 boss printf("main man");
177 money printf("bre'd");
178 [a-z]":" { *(yytext+1) = ',';
179 printf("%s dig dis:",yytext);
181 amateur printf("begina'");
182 radio printf("transista'");
183 {BW}of{EW} { printf("%cuh",yytext[0]);plastc();}
186 "don't" printf("doan'");
189 {BW}were{EW} { printf("%cwuz",yytext[0]);plastc();}
190 {BW}understand printf("%cdig",yytext[0]);
191 {BW}my printf("%cmah'",yytext[0]);
193 against printf("agin'");
194 {BW}[Ii]{EW} { printf("%cah'",yytext[0]);plastc();}
195 meta printf("meta-fuckin'");
200 yyunput(yytext[yyleng-1], yytext);
206 if (yytext[0] <= 'Z')
215 static short count = 0;
218 switch (count++ % 4) {
226 printf("wahtahmellun");
232 static short count = 0;
233 static short which = 0;
235 if (count++ % 4 == 0) {
236 switch (which++ % 5) {
237 case 0: printf(" What it is, Mama!"); break;
238 case 1: printf(" Ya' know?"); break;
239 case 2: printf(" Sheeeiit."); break;
240 case 3: printf(" Ya' dig?"); break;
241 case 4: printf(" Git down!"); break;
259 * If a sentence starts with a keyword it doan' get converted, or:
260 * it do, but gets a leading space