{
  "definitions": [
    {
      "callable": true,
      "callees": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "insideCompound",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        },
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "linkable",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        },
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "matchesAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "hitAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 106,
      "name": "admits",
      "signature": "const admits = function admits(text: string, tokens: readonly WordToken[], at: number, seen: ReadonlySet<string>) {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "gapIsSoft",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "admits",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "matchesAt",
      "signature": "const matchesAt = function matchesAt("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "isAmbiguous",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "admits",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "relay",
      "kind": "lexical_declaration",
      "line": 102,
      "name": "linkable",
      "signature": "const linkable = function linkable([words, entry]: PhraseCandidate, seen: ReadonlySet<string>): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "buildPhraseIndex",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "commaJointsOf",
      "signature": "const commaJointsOf = function commaJointsOf(phrase: string): readonly boolean[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "linkable",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "isAmbiguous",
      "signature": "const isAmbiguous = function isAmbiguous(words: readonly string[]): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "matchesAt",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "gapIsSoft",
      "signature": "const gapIsSoft = function gapIsSoft(text: string, from: number, to: number, comma: boolean): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "admits",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 88,
      "name": "insideCompound",
      "signature": "const insideCompound = function insideCompound("
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "commaJointsOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "buildPhraseIndex",
      "signature": "export const buildPhraseIndex = function buildPhraseIndex(vocabulary: readonly VocabularyEntry[]): PhraseIndex {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/matchers/vocabulary.matcher.ts",
          "name": "admits",
          "source": {
            "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
            "json": "https://banes-lab.com/json/source/tree/core/matchers/vocabulary.matcher.ts",
            "label": "core/matchers/vocabulary.matcher.ts",
            "markdown": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.md",
            "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 117,
      "name": "hitAt",
      "signature": "const hitAt = function hitAt("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 11,
      "name": "COMMA",
      "signature": "const COMMA = \",\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 14,
      "name": "joints",
      "signature": "const joints: boolean[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 15,
      "name": "inWord",
      "signature": "let inWord = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "seenWord",
      "signature": "let seenWord = false;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "AMBIGUOUS_KEYS",
      "signature": "const AMBIGUOUS_KEYS: ReadonlySet<string> = new Set("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 43,
      "name": "byFirstWord",
      "signature": "const byFirstWord = new Map<string, PhraseCandidate[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "words",
      "signature": "const words = wordsOf(entry.phrase);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "[first]",
      "signature": "const [first] = words;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "char",
      "signature": "const char = text.charAt(at);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 74,
      "name": "offset",
      "signature": "for (let offset = 0; offset < words.length; offset += 1) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 76,
      "name": "previous",
      "signature": "const previous = tokens[at + offset - 1];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 80,
      "name": "comma",
      "signature": "const comma = joints[offset - 1] === true;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 108,
      "name": "[words]",
      "signature": "const [words] = candidate;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "token",
      "signature": "const token = tokens[at];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 128,
      "name": "candidates",
      "signature": "const candidates = index.byFirstWord.get(token.word) ?? [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 132,
      "name": "matchPhrases",
      "signature": "export const matchPhrases = function matchPhrases("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 137,
      "name": "tokens",
      "signature": "const tokens = tokensOf(text);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 138,
      "name": "matches",
      "signature": "const matches: PhraseMatch[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 139,
      "name": "at",
      "signature": "let at = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 141,
      "name": "hit",
      "signature": "const hit = hitAt(text, tokens, at, index, seen);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 142,
      "name": "first",
      "signature": "const first = tokens[at];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 147,
      "name": "[words, entry]",
      "signature": "const [words, entry] = hit;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 148,
      "name": "last",
      "signature": "const last = tokens[at + words.length - 1] ?? first;"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-vocabulary-matcher-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "vocabulary.matcher.ts",
  "path": "core/matchers/vocabulary.matcher.ts",
  "ref": "anatomy:file-core-matchers-vocabulary-matcher-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-matchers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-matchers",
          "label": "core/matchers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-matchers.md",
          "ref": "chapter:/anatomy/tree#folder-core-matchers"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/disciplined-methodology/verify#derived-state",
          "json": "https://banes-lab.com/json/disciplined-methodology/verify/derived-state",
          "label": "Derived state",
          "markdown": "https://banes-lab.com/disciplined-methodology/verify/derived-state.md",
          "ref": "chapter:/disciplined-methodology/verify#derived-state"
        }
      ],
      "relation": "evidence-for"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-matchers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-matchers",
          "label": "core/matchers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-matchers.md",
          "ref": "chapter:/anatomy/tree#folder-core-matchers"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "matcher",
    "subject": "vocabulary",
    "variant": null
  },
  "stats": {
    "bytes": 4977,
    "callable": 10,
    "definitions": 32,
    "edges": 7,
    "exported": 12,
    "files": 1,
    "findings": {},
    "flows": {
      "relay": 3,
      "leaf": 4,
      "entry": 2,
      "isolated": 23
    },
    "lines": {
      "blank": 12,
      "code": 142,
      "total": 154
    }
  },
  "summary": "142 lines of code and 32 definitions.",
  "text": "https://banes-lab.com/source/tree/core/matchers/vocabulary.matcher.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-matchers-search-matcher-ts",
      "json": "https://banes-lab.com/json/source/tree/core/matchers/search.matcher.ts",
      "label": "core/matchers/search.matcher.ts",
      "markdown": "https://banes-lab.com/source/tree/core/matchers/search.matcher.ts.md",
      "ref": "anatomy:file-core-matchers-search-matcher-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/core/matchers",
    "label": "core/matchers",
    "markdown": "https://banes-lab.com/api/source/tree/core/matchers.md",
    "ref": "api:source/tree/core/matchers"
  }
}
