Search for question
Question

This is an assignment in prolog. The base code is in starter.pl. The goal is to implement the method called parse_sentence() so that it parses the input to give the desired output. This uses a BNF sentence grammar at the top of starter.pl in the comments. Using this grammar parse the input so that it adds delimiters to the subject, object, noun phrase, verb phrase...etc. You can check if the program works by running "python3 autograder.py -- prolog_file starter.pl". Do not use any other external packages or libraries. You can make additions to other parts of the code but for the autograder to work it needs to have "make go".

Fig: 1