TheConeHead
Programmer
anyone know of a good spell checker? Like if I had an app where people enter text into a field and wanted to do a spell check on it.....
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
![[conehead] [conehead] [conehead]](/data/assets/smilies/conehead.gif)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The Poor Man's Spell Checker (PMSC) is a simple, lightweight spell-checking script.
[blue][b]The source code is written in VBScript, but you could port it to the language of your choice without too much trouble.[/b][/blue]
bOK = SpellCheck(PrepForSpellCheck(sWordToCheck))
if not(bOK) then
aMySuggestionArray = Suggest(PrepForSpellCheck(sWordToCheck))
end if
<!-- #include file="spell.asp" -->
<form action="tryit.asp" method="get">
<input type="text" name="word" value="<%=Request("word")%>" />
<input type="submit" value="Check" />
</form>
<%
Dim strHaha
Dim strWord
if Request("word") & "" <> "" then
LoadDictArray
strHaha = Request("word")
if SpellCheck(strHaha) then
Response.Write strHaha & " is spelled correctly.<p />" & vbNewLine
else
Response.Write strHaha & " is misspelled.<p />" & vbNewLine
end if
Response.Write "Suggestions:<p />" & vbNewLine
for each strWord in Suggest(strHaha)
Response.Write strWord & "<br />" & vbNewLine
next
end if
%>