Location: PHPKode > projects > ObsceneClean > TestIfInAspell.php
<?PHP
echo '<br> THE START. ';
$cusses  = array(
"MACACA MUNZALA",
"MELTWATER",
"LIGHTWATER",
"ARGENTITE",
"BIOTITE",
"ENTITATIVE",
"MATITE",
"NICTITATE",
"OTITIS",
"PANCREATITIS",
"PROSTATITIS",
"SOLSTITIAL",
"STEATITE",
"TITBIT",
"TITHABLE",
"TITRATE",
"TITTIVATE",
"CUSHITE",
"DNIPROPETROVSK",
"NIPTUCK",
"SERFAGE",
"WHARFAGE",
"CIRROCUMULUS",
"CUMQUAT",
"VIATICUM",
"BAGASSE",
"CASSINI",
"CASSINO",
"CASSITERITE",
"CHASSE",
"CUIRASS",
"GASSINESS",
"HASSID",
"HASSIUM",
"KUZBASS",
"PARNASS",
"THALASSIC",
"PENISTONE",
"SCUNTHORPE	",
"SLUTSKAYA",
"SHITAKE",
"DOO WOP",
"PERMA-CHINK",
"CHINK JUMPING SPIDER",
"MAINE COON",
"COON CARNIVAL",
"COON CREEK",
"COON RAPIDS",
"COON VALLEY",
"COON RIVER",
"COON MOUNTAIN",
"COON VILLAGE",
"ZIP COON",
"COONYHAM",
"COON DOG",
"COON HOUND",
"PUSSY WILLOW",
"PUSSY CAT",
"OCTOPUSSY",
"WARWICK BASTARD",
"BASTARD STRANGLES",
"DAGO CREEK",
"DAGO GARC",
"ZUNICOONS ",
"KYKED ON THE NEWE MOON",
"WOOLY BUGGER");
$pspell_link = pspell_new("en"); //0. Get the dictionary
$num = count($cusses);
for ($i=0; $i<$num; $i++)	
	{
	if (pspell_check($pspell_link, $cusses[$i])) 
	{ echo " <br> $cusses[$i] is valid spelling"; }
	else 
    { echo " <br> $cusses[$i] is NOT valid spelling"; }
}
echo '<br> THE END. ';
?>
Return current item: ObsceneClean