SpellCheckProvider

3 posts, 0 answers
  1. Marek
    Marek avatar
    3 posts
    Member since:
    Jan 2011

    Posted 27 Oct 2011 Link to this post

    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. Andrew
    Admin
    Andrew avatar
    140 posts

    Posted 01 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Marek
    Marek avatar
    3 posts
    Member since:
    Jan 2011

    Posted 02 Nov 2011 Link to this post

    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
Back to Top