Commit 1f1e45f7 authored by Kavindu Jayawardana 's avatar Kavindu Jayawardana

Grammer EF 3

parent 65e21b2a
...@@ -9,6 +9,11 @@ parser = GingerIt() ...@@ -9,6 +9,11 @@ parser = GingerIt()
result = parser.parse(text1) result = parser.parse(text1)
print(result) print(result)
scoreForGrammerAccracy = 70/100
text = ("I'll be there in time, but I also have to do my homhomework too,although I should finish them,so I may be late. And one more thing, can I use your car ?. Anyway after today I also need to work hard because my exam is in the next month.") text = ("I'll be there in time, but I also have to do my homhomework too,although I should finish them,so I may be late. And one more thing, can I use your car ?. Anyway after today I also need to work hard because my exam is in the next month.")
doc = nlp(text) doc = nlp(text)
...@@ -66,3 +71,4 @@ for sent in doc.sents: ...@@ -66,3 +71,4 @@ for sent in doc.sents:
if transitionWordCount >= 2 and word_count > 20: if transitionWordCount >= 2 and word_count > 20:
print("## To make your English perfect make sure you don't use two transition words in a single sentence. Try to split senetce to two sesentences from transition words or conjunction!\n\n") print("## To make your English perfect make sure you don't use two transition words in a single sentence. Try to split senetce to two sesentences from transition words or conjunction!\n\n")
scoreForLengthySentences = 80/100
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment