Skip to content

Commit 33f774d

Browse files
Update pages/glossary/label-in-name-algorithm.md
Co-authored-by: Jean-Yves Moyen <jym@siteimprove.com>
1 parent 02d69f4 commit 33f774d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pages/glossary/label-in-name-algorithm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Sub-algorithm to tokenize a string:
3030
Then do the check: is the tokenized `label` a contiguous subsequence of the tokenized `name`?
3131
- This 'contiguous subsequence' check has these properties:
3232
- Each string comparison (between a list element in the tokenized label and a list element in the tokenized name) is a simple string equality check.
33-
- The "contiguous" aspect means that it's crucial that the elements are consecutive in the original list. Put another way: a contiguous subsequence of X can be obtained by removing any number of tokens from the start and/or end (but not the middle) of X. For example: ["A", "B", "C"] is a contiguous subsequence of ["A", "B", "C", "D"]. ["A", "B", "D"] is not.
33+
- The "contiguous" aspect means that it's crucial that the elements are consecutive in the original list. Put another way: a contiguous subsequence of X can be obtained by removing any number of tokens from the start and/or end (but not the middle) of X. For example: ["A", "B", "C"] is a contiguous subsequence of ["A", "B", "C", "D"]; but ["A", "B", "D"] is not.
3434
- An empty list is a contiguous subsequence of any list.
3535

3636
If the answer is "yes" (that is: the tokenized 'label' is a contiguous subsequence of the tokenized 'name'), then this algorithm returns "is contained". Otherwise, it returns "is not contained".

0 commit comments

Comments
 (0)