Switch Case Generator
by walkerneo
HTML
<textarea id="out"></textarea>
JavaScript
window.gid = function(id) {
return document.getElementById(id);
};
out='';
txt=['one,1','2,two','3,three','4,four','5,five','6,six','7,seven','8,eight',
'9,nine','10,ten','11,eleven',
'12,twelve','13,thirteen','14,fourteen','15,fifteen','16,sixteen',
'17,seventeen','18,eightteen','19,nineteen','20,twenty','21,twenty one',
'22,twenty two','23,twenty three','r,are','wtf,what the fuck',
'omg,oh my god','im,I\\\'m','was,wuz','at,@','1st,first','second,2nd',
'third,3rd','fourth,4th','fifth,5th','sixth,6th','because,cuz','ive,I\\\'ve',
'seriously,srsly','ass,arse','it\\\'s,its','don\\\'t,dont','b,be',
'neway,anyway','what,wat','lol,lmfao','really,rly','okay,ok','ha,haha',
'yeah,yea','XD,=)','shit,shite','asl,age sex location','woah,wo',
'anyone,ne one','idk,i don\\\'t know','never,neva','dumbass,dumbarse',
'through,thru','though,tho','please,plz','fuck,fawk','the,teh',
':),=)',':(,=(','behind,bhind','lmao,lol','jk,just kidding',
'that,tht','again,agn','dood,dude','btw,by the way',
];
tt=[
'to,2','yeah,yes','for,4','twice,two times','know,no','ok,k','and,\\\'n',
'there,ther','their,ther','nope,no','back,bk','love,<3','oh,o',
];
for(i=0;i<txt.length;i++){
txt1=txt[i].split(',');
out+='case \''+txt1[0]+'\':\n\ttxt1[l]=\''+txt1[1]+'\';\n\tbreak;\n';
out+='case \''+txt1[1]+'\':\n\ttxt1[l]=\''+txt1[0]+'\';\n\tbreak;\n';
}
for(i=0;i<tt.length;i++){
tt1=tt[i].split(',');
out+='case \''+tt1[0]+'\':\n\ttxt1[l]=\''+tt1[1]+'\';\n\tbreak;\n';
}
out+="default:\n\tbreak;";
gid('out').value=out;