Making a Grammar Checker with Autocorrect Options Using NLP Tools
Authors: |
|
Pages: | 45 : 53 |
Abstract: |
Our natural language approach concerns syntactic analysis using a dedicated Javascript library - wink-nlp - and semantic analysis based on Prolog programming language, facilitated by another Javascript library - tau-prolog - that allows defining logical programs, declaring rules and checking for goals inside Javascript language. Firstly, our program splits the original text into sentences, than into tokens and identifies each part of the sentence, dynamically maps entities into Prolog rules, then check the spelling accordingly to the Definite Clause Grammar (DCG) by querying the pre-defined program for initial goals (the sentence itself). Basically, we let the parser infer its own rules from the syntactic point of view, then check the grammar from a semantic perspective against the DCG inside the same work flow or pipeline of steps. The provided article combines the usage of wink-nlp and tau-prolog packages for natural language processing (NLP) and understanding (NLU). |
JEL classification: | C88, L86 |
C88, L86