This project is a repo for GRAMMAR PATTERNS 1: VERBS. It is presented in form of command line interface and allows users to search for verb patterns recorded in this grammar book.
- python 3.6+ is required to run the code.
- Install w3m. (For Mac users, it can also be installed by running
brew install w3m
) - Install prompt_toolkit jinja2.
pip install prompt_toolkit jinja2
- Run program by typing
python main.py
in command line.
- Install msys2.
- Execute msys2 and then run the following command.
pacman -S python w3m python3-pip
- Clone the repo.
git clone [email protected]:sappy5678/grammar_pattern_cli.git
- Install prompt_toolkit jinja2.
pip install prompt_toolkit jinja2
- Get into directory (ls/grammar_pattern_cli/) and run
pyhton main.py
.
This project allows users to search verbs in two ways:
find_pattern
: Find all verb patterns that matches all the entered conditions.- Verb Patterns
- Structure
- Verb Group
search_word
: Get information about a specific verb.- All patterns of the searched verb
- Information about a specific verb pattern
- Example:
-
Take
find_pattern
function as example:$ python main.py use help for more information press tab for show auto complete > find_pattern please input pattern > V -ing please input structure > Verb with Adjunct please input verb group > ALL
-
Output: V -ing
Verb group -ing clause Subject Verb Adjunct I 'd die feeling guilty. Phrasal verbs: V P -ing
Verb group Partical -ing clause Subject Verb Adjunct We ended up having dinner. I was hanging around hoping to see him. Verbs with this structure are all concerned with beggining, ending, or spending time in a particular way.
- The soldiers reasoned that they'd prefer to die fighting rather than waiting.
- Their boat finished up pointing the wrong way.
- I started off doing languages, which I quite enjoyed, but I switched to law and quantified as a solicitor.
Structure information a) The '-ing' clause is an Adjunct. b) This structure has no passive. c) The phrasal verb pattern is the same except that there is a particle, P, which comes after the verb.
V -ing die end up finish up hang about hang around / round start off wind up chapter 1 page: 86
-
docker run --restart=always -d -p 5101:5000 $(DOCKER)