Spell checker in python and java
Write a python code and java code that can take a whole sentence and do text analysis by checking the spelling mistakes and show the correct spelling.
Example:
Input: I have a peen.
Output:
True I
True have
True a
False peen
the correct spelling: pen.