This is a migrated thread and some comments may be shown as answers.

SpellCheckProvider

2 Answers 84 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
Marek
Top achievements
Rank 1
Marek asked on 27 Oct 2011, 12:21 PM
I am using  RadSpellChecker for Silverlight with pl-PL dictionary.
The quality of spell checking is rather low, very basic words are not recognized. Searching the web, I found information regarding asp.net version of spell checker: 
 
Some languages such as Arabic, Czech, Polish, Russian and Hebrew do not support phonetic spellchecking. That's why in order to use them you should configure the spellchecker to use its EditDistanceProvider, e.g.

C#:
====================================================
RadSpell spell = (RadSpell) RadEditor1.RadSpell;
spell.SpellCheckProvider = SpellCheckProvider.EditDistanceProvider;
spell.DictionaryLanguage = "ar-AR";
====================================================

I wonder if I can set SpellCheckProvider in Silverlight spell checker and if it is the reason of low quality checking.

Regards,
Marek Huk

2 Answers, 1 is accepted

Sort by
0
Andrew
Telerik team
answered on 01 Nov 2011, 03:24 PM
Hello Marek,

If correct words are marked as wrong, that can be due to two reasons:
1. They are not present in the dictionary - you can prepare and use another dictionary following the steps listed here.
2. The dictionary has not been found and the problem - MEF has not managed to load the dictionary. The solution for this issue is described in Andrew's post form July 14th.

In case that you find the suggestions for misspelled words not relevant, please refer to the explanation below.
The spell checker for ASP.NET has different spell-check providers as listed here. However, the spell checker for WPF/Silverlight and the one for ASP have little in common (apart from the fact that they both use TDF files for their dictionaries). RadSpellChecker for Silverlight/WPF supports only one spell checking mechanism, which is more or less based on the phonetics of the words.
The only way to use a different algorithm for assessing the distance between words is to implement the ISpellChecker interface, which deals with determining which words are correct, the suggestions that should be listed for a word, etc. Then, you can register a ControlSpellChecker using this ISpellChecker like this:

ControlSpellCheckersManager.RegisterControlSpellChecker(new TextBoxSpellChecker() { SpellChecker = new MySpellChecker() });

We will research the approaches that can be adopted in order to improve the quality of spell checking in languages such as Polish. However, the feature has not been scheduled, so it is not clear if and when it will be implemented.

Best wishes,
Andrew
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Marek
Top achievements
Rank 1
answered on 02 Nov 2011, 09:08 AM
Hello,

I beleive that my errors are due to spell checking algorithm not appropriate for polish, which grammar / variety of words is different from western languages.

Thanks for explanation.
Marek Huk
Tags
SpellChecker
Asked by
Marek
Top achievements
Rank 1
Answers by
Andrew
Telerik team
Marek
Top achievements
Rank 1
Share this question
or