Support sentence lookup/decomposition in the online dictionary. This could be in two forms.
1. Break up the sentence into words. (See what they did with the Chinese dictionary at http://www.mdbg.net.) Some pseudocode:
for (startIndex = 0; startIndex < sentence.Length; )
{
for (length = sentence.Length - startIndex; length != 0; length--)
{
word = sentence.Substring(startIndex, length);
if (definition = dictionary.Lookup(word))
{
Display(definition);
break;
}
}
if (length > 0)
startIndex += length;
else
startIndex++;
}
2. If possible, diagram the sentence grammar.