SpellCheck() takes the text to check and the dictionary (or multiple dictionaries) against which to check the text, and it returns an array of structs with these keys:
textToCheck = "Pleze chek mi speling.";
results = SpellCheck(textToCheck, "english-us");
- originalWord - the misspelled word
- positionIndex - the position of the first character of the misspelled word in the string being checked
- suggestedWords - an array of strings that are suggested corrections for the misspelled word
All the new functionality that has been added to OpenBD in the past few months has been an incredible asset to my CFML development, and I'm really excited to see more and more plugins being created. Plugins are an easy and extremely powerful way to add new functionality to the OpenBD engine. Reminds me that I need to get back to work on my CFTWITTER plugin to finish that out!
renderedOutput = RenderInclude("/path/to/template.cfm");