Spell check

Posted on 2011-05-11
Last Modified: 2012-05-11

I'm looking for a script which can spell check a document and output a formatted file.

Thank you
Question by:faithless1
    LVL 31

    Accepted Solution

    You may want to look at Unix utility
    aspell -l

    It would show the word again if a spelling is wrong

    You can try like

    echo "This is a sentense" | aspell -l

    This would return back "sentense" because it is misspelled.

    For simple formatting you may want to look at Unix fmt utility.

    Perl version of the same can be seen as

    Also you can use Pspell
    LVL 26

    Expert Comment

    What exactly do you mean by formatted file?

    Do you want the spell checking to auto-correct or to just provide a list of the questionably spelled words?

    Author Comment

    I'm interested in outputting only words found in the dictionary from input.txt to output.txt.

    LVL 11

    Expert Comment

    Hi faithless1,

    wilcoxon is asking:
      What exactly do you mean by formatted file?  What's the answer?

    Please provide sample input and output data.  I suggest you do this for all your questions, if possible, as it makes it a lot easier for experts to answer without guessing or having to ask extra questions, and they can more easily see when they have a working solution.  It also helps you to think clearly about your requirements.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
    Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now