Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

IgnoreIncorrectSentenceCapitalization suggestion list - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Illia Romanenko
#1 Posted : Wednesday, March 13, 2019 2:29:41 PM
Rank: Newbie

Groups: Registered

Joined: 3/13/2019
Posts: 1
Hi all,

I was wondering if you could address following issue:

I'm using Keyoti.RapidSpell.RapidSpellChecker object for checking text with wrong capitalization.
It detects mistakes correct, but suggestion list seems to return words without first capital symbol.
For instance: at text "New word. old word." it detects 'old' as mistake, but suggests to replace by 'old' as well (I'm expecting to receive 'Old').

Could you please specify is it a standard behavior or I can some how adjust it by some parameters?

Thank you in advance.
#2 Posted : Wednesday, March 13, 2019 4:44:20 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,639
Location: Canada
Yes it's not automatic, I think we handle it in the UI layer.

Anyway you can achieve the same with code similar to this, obviously you should check suggestion length > 1 and you might want to modify all the suggestions


            RapidSpellChecker ch = new RapidSpellChecker();

            ch.Check("New word. old word");
            var suggs = ch.FindSuggestions();
            if (ch.CurrentBadWord.Reason == BadWord.REASON_CAPITALIZATION)
                suggs[0] = Char.ToUpper(suggs[0].ToString()[0]) + suggs[0].ToString().Substring(1);

-your feedback is helpful to other users, thank you!

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.