Please refer to APIs for more information
C#
SpellingDice temp = new SpellingDice();
foreach (string tempString in temp.ReturnSuggestion("hallo"))
Console.Write(tempString);
foreach (string tempString in temp.ReturnSuggestion("hallo world "))
Console.Write(tempString);
foreach (string tempString in temp.WordProcess("hallo"))
Console.Write(tempString);
PHP // try the search input textbox at the top then click the "try out" button and see how does it work.
process.php
example of ReturnSuggestion()
$inputString=$_REQUEST['input'];
include_once 'SpellDice.php';
$result=SpellDice::ReturnSuggestion($inputString);
if(is_array($result))
{
echo "did you mean: ";
foreach ($result as $resultString)
echo $resultString." ";
echo "?";
}
else
{
if($result==$inputString)
echo "No Suggestion for ".$result;
else
{
echo "did you mean:";
echo $result;
echo "?";
}
}
example of WordProcess()
$inputString=$_REQUEST['input'];
include_once 'SpellDice.php';
$result=SpellDice::WordProcess($inputString);
echo "did you mean: ";
foreach ($result as $resultString)
echo $resultString." ";
echo "?";