PowerShell : Spell checking and Rectifying Spelling Mistakes


Hello,

Today we’ll see how we can use PowerShell to Spell check Strings passed as parameter, to Identify spelling mistakes and Rectify those spelling mistakes.

s1

This is possible with help of a  RESTful API Offered by Microsoft, known as Spell Check API , which is part of  Microsoft Project Oxford.

If you follow my blog, you must be aware that I’m a big fan of Microsoft API’s because of there usability and ease to access.I’ve covered many of the Microsoft ProjectOxford’s APIs in my previous posts.

WHAT THIS API CAN DO?

Spell check API is capable to –

  1. Identify Unknown or Misspelled words.
  2. Identify Repetitive words in a string.
  3. Remove Special characters and punctuations marks from the string.
  4. Identifies Nouns (Like Name, City, Country) and make the first Alphabet in Upper Case.
  5. Provide Suggestions to replace misspelled words in  in a sentence,  like in the below screenshot.

spell

HOW IT WORKS :

Following  image will give you an idea how my code works and what are the steps involved.

how

GET THE SCRIPT : 

Click Here to go to my GitHub gist to get the code.

HOW TO RUN THE SCRIPT :

Follow the below animation and explore how to use the script.

final_gif

Please Like\Comment if you find it fun 🙂 and share you valuable insights, to make this script better .. Catch you guys later, ciao!

6 thoughts on “PowerShell : Spell checking and Rectifying Spelling Mistakes

  1. VMware Certified Advanced Professional 6 (Desktop and Mobility Deployment) – The industry-recognized VCAP6-DTM Deploy certification validates that you know how to deploy and optimize VMware Horizon 6 (with View) environments. It demonstrates that you have the understanding and abilities required to leverage best practices to provide a scalable and dependable Business Mobility platform for your company. Some of the subjects involve: Configuring and managing Horizon View components, configuring cloud pod archituecture, configuring Group Policy settings related to Horizon View, Configuring and optimizing desktop images for Horizon View & Mirage, Configuring and managing App Volumes AppStacks, Configuring desktop pools, Configuring and deploying ThinApp packaged applications, Configuring VMWare Identity Manager, etc.Szumigalski.com was created by Sebastian to propagate his enthusiasm for PowerShell & VMWare. Sebastian is an IT qualified professional employed in Singapore for more that 15 years who is at all times in search of innovative technology to refine his technical capabilities & knowledge. Ever since, Sebastian has became a member of PowerShell User Group & VMWare VMug group, and has also been engaging in all the get-togethers held in Singapore. This blog site will show you precisely how Sebastian manage to speed up his daily duties with the help of PowerShell. There are study courses readily available for the VCAP6-DTM test, which are personally written by Sebastian. Sebastian is certified with VCAP6-DTM, and is skilled with virtualization & server maintenance from 4 years experience in automation. The interest in VMWare knowledgable admins and engineers are ever-increasing in the current tech market place. Become familiar much more about PowerShell & VMWare with Szumigalski.com!

    Like

Leave a comment