Can we correct spellling in uipath?

can we correct spellling in uipath ?
for example in asign i gave wrong word “Temprateer” can i correct it to “Temperature”

Hi @MitheshBolla

Have an look on the thread


1 Like

Have an look on the below thread @MitheshBolla


1 Like

which activity?

Hi @MitheshBolla ,

Could you provide a brief explanation of the use case that you want to do with the Correction of Spellings?

It would seem we may have to opt for a Machine Learning method if the requirement is strict.

However, we do have certain libraries in C# which we can use for Checking of Spelling Mistakes and Also Get Suggestions from the Libraries as to what is the best Word Spell Correction for the Input String passed.

Some of the Libraries are listed below :

  1. NHunspell
    NHunspell - Hunspell for the .NET platform - CodeProject

  2. NetSpell
    NetSpell - Spell Checker for .NET - CodeProject

  3. Interop.Word
    Using Word's spellchecker in C# - CodeProject

I have used the Third Option to get the Spelling Suggestions whenever there is an Indication of Spelling Mistake, as the other two methods require a certain dictionary file to be Present.

I am using a Input Dialog to Choose the Correct Spelling from the Suggestions.

However, we can make use of the First Option directly without a need to use the Input Dialog for Human Interaction by always Selecting the First if the case is for Unattended, but again it needs certain Testing to be done.

Check the below Example Workflow : (3.5 KB)

There is also a Dummy Word Document which needs to be present in the Project folder for the Process to work.

Let us know know if the Workflow has any issue in your system and also your thoughts on this and a Brief Explanation of your use case.

1 Like

if i start this process it took 5 mints and still not started

Hi @MitheshBolla ,

Maybe There is a Problem in the Requirements.

Is there a Microsoft Word installed in the system?

1 Like

no actually we are building in c#, so the value assigined has errors

@MitheshBolla ,
Could you Show the Error Message from the Assign Activity?

If it is required in C#, I will provide the replacement version shortly.

1 Like

yes please . this helps me a lot , and thANKS

@MitheshBolla Could you Provide the Error Message Shown from the Assign Activity? Just to Confirm if there is any other Error other than that of C# Compliant version.

We do see that there is 9 instead of ( in the Assign Value

1 Like

for c# insted of () it will take , i chanaged but still error occuring

@MitheshBolla ,

Check the C# Version of the Workflow Below : (3.8 KB)

I had to use Invoke Method for this case.

Let us know if it doesn’t work.

1 Like

Instead of input dailouge box how to take first output?


You could use the below Expression to get the First Value if there are any Suggestions :

1 Like

It worked and if string contains a setence , it will check for first word only right.But not complete sentense

Yes, For the Current Workflow, It will only take the first word.

But a modification can be done to iterate over the words in a sentence and collect the Suggestions.

1 Like

like "Product Manger’s Applicotion " can we correct the sentence too
the change to be made in c# code input


I am afraid the result is not very accurate with this Setup.

The Word "Manger" is also a Proper word which has a meaning and hence it is not recognised as a Spelling Mistake.

The Word Applicotion is understood as a Mis-Spelled word and gets corrected.

Find the Updated Workflow Below which Corrects all the Mis-Spelled words in a Sentence: (4.4 KB)

We could however explore the Options of Adding a Custom Dictionary but it would not cover the whole grammatical cases.

As said earlier , if the Requirement is Strict, Need to Re-Group the Details and Requirements in Finding a Proper Machine Learning Model that does the Intended operation.

I’ll perform a Research on the available Models by UiPath in Meantime to get the better solution.