It's a nifty script to automatically capitalize the first word of a sentence and insert a period at the end. But it would be better if it could recognize a question phrase and put a question mark at the end, instead of a period.
Let's say if you typed a simple word why and didn't put a question mark, the script would put a period there, which would not be a good thing.
What, do, did, how, why, where, when, who, can, could, should and might are the common ones to start a question phrase. They are the words to watch out for. This also applies to the exclamation mark.