@@ -66,25 +66,25 @@ Search for patterns in an NLCST tree.
66
66
67
67
###### Parameters
68
68
69
- * ` node ` ([ ` Node ` ] [ node ] ) — Tree to search in;
69
+ * ` node ` ([ ` Node ` ] [ node ] ) — Tree to search in
70
70
* ` patterns ` (` Array.<string> ` or ` Object ` )
71
71
— Patterns to search for. If an ` Object ` , uses its keys.
72
72
Each pattern is a space-delimited list of words, where each
73
73
word is [ normalize] [ ] d to remove casing, apostrophes, and dashes.
74
74
Spaces in a pattern mean zero or more white space nodes in
75
- the tree.
75
+ the tree
76
76
* ` handler ` ([ ` Function ` ] [ fn-handler ] )
77
- — Handler invoked when a match is found.
77
+ — Handler invoked when a match is found
78
78
* ` allowApostrophes ` (` boolean ` , default: ` false ` )
79
- — Configuration for [ ** nlcst-normalize** ] [ normalize ] );
79
+ — Configuration for [ ** nlcst-normalize** ] [ normalize ] )
80
80
* ` options ` (` Object ` )
81
81
— Configuration:
82
82
* ` allowApostrophes ` (` boolean ` , default: ` false ` )
83
- — Configuration for [ ** nlcst-normalize** ] [ normalize ] );
83
+ — Configuration for [ ** nlcst-normalize** ] [ normalize ] )
84
84
* ` allowDashes ` (` boolean ` , default: ` false ` )
85
- — Configuration for [ ** nlcst-normalize** ] [ normalize ] );
85
+ — Configuration for [ ** nlcst-normalize** ] [ normalize ] )
86
86
* ` allowLiterals ` (` boolean ` , default: ` false ` )
87
- — Include [ literal] [ ] phrases.
87
+ — Include [ literal] [ ] phrases
88
88
89
89
###### Throws
90
90
@@ -97,13 +97,13 @@ Handler invoked when a match is found.
97
97
###### Parameters
98
98
99
99
* ` nodes ` ([ ` Array.<Node> ` ] [ node ] )
100
- — List of siblings which match ` pattern ` ;
100
+ — List of siblings which match ` pattern `
101
101
* ` index ` (` number ` )
102
- — Position at which the match starts in ` parent ` ;
102
+ — Position at which the match starts in ` parent `
103
103
* ` parent ` ([ ` Node ` ] [ node ] )
104
- — Parent node of ` nodes ` ;
104
+ — Parent node of ` nodes `
105
105
* ` pattern ` (` string ` )
106
- — The matched pattern.
106
+ — The matched pattern
107
107
108
108
## License
109
109
0 commit comments