Skip to content

Commit

Permalink
add termmethods to list of supported syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain authored Dec 18, 2020
1 parent dc2bf44 commit 2bd3d9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/strict/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ console.log(doc.text());
still maintining a match.
- **Note**: repeatedly matched groups will overwrite and save only the last value.
- EndOf: `$` - end of string
- TermMethods: `@` at start of string

### Railroad diagrams

![image](https://user-images.githubusercontent.com/399657/99450530-e557dc00-28ee-11eb-927c-168f5aa2e5f9.png)

Chevrotrain has the neat ability to generate diagrams to explain the match lookup. You can see an example of this working in [./lib/gen_diagram.js](https://github.com/spencermountain/compromise/blob/dev/plugins/strict/lib/gen_diagram.js)

GPL-3
GPL-3

0 comments on commit 2bd3d9d

Please sign in to comment.