Python Forum

Full Version: Datasets of grammatically uncommon sentences?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,
I'm trying to train a model which replaces grammatically correct but uncommon sentences, with their more common counterparts. So I'm looking for any datasets of grammatically uncommon sentences paired with their more common versions.

For eg.
1. Already, enough punishment had been given.
2. Enough punishment had been given already.
3. Enough punishment had already been given.
All sentences say the same thing, but No. 3 is the most likely version you would encounter.

Another eg.
1. Either by you or someone else, the bill must be paid.
2. Either you or someone else must pay the bill.
3. The bill must be paid either by you or someone else.
No. 1 would be the unlikely version. No. 2 & 3 are more likely.

Any suggestions where I can find these? Or any other mechanisms through which I can achieve the end goal of replacing uncommon grammar with "common grammar".

Thanks
Thanks. That was some pretty interesting stuff there. But not exactly what I was looking for. Maybe some English as second-language datasets might do the trick?
The only package that I know of that will help with grammar (for any language, actually) is NLTK.
This article is specifically written to that end: https://www.nltk.org/book/ch08.html
Also, google 'grammatically analyse a sentence with python'