{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/algorithm.validator.ts",
          "name": "intraGrammarDivergentOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.validator.ts",
            "label": "core/validators/algorithm.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "groupSymbolsByGrammar",
      "signature": "const groupSymbolsByGrammar = function groupSymbolsByGrammar("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/algorithm.validator.ts",
          "name": "crossCatalogRedundancyOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.validator.ts",
            "label": "core/validators/algorithm.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 68,
      "name": "titleTokens",
      "signature": "const titleTokens = function titleTokens(title: string): Set<string> {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/validators/algorithm.validator.ts",
          "name": "crossCatalogRedundancyOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.validator.ts",
            "label": "core/validators/algorithm.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-validator-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 78,
      "name": "tokenOverlap",
      "signature": "const tokenOverlap = function tokenOverlap(tokensA: Set<string>, tokensB: Set<string>): number {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/algorithm.validator.ts",
          "name": "titleTokens",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.validator.ts",
            "label": "core/validators/algorithm.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-validator-ts"
          }
        },
        {
          "file": "core/validators/algorithm.validator.ts",
          "name": "tokenOverlap",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.validator.ts",
            "label": "core/validators/algorithm.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "crossCatalogRedundancyOf",
      "signature": "const crossCatalogRedundancyOf = function crossCatalogRedundancyOf(faces: IntegrityFaces): { a: string; b: string }[] {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/validators/algorithm.validator.ts",
          "name": "groupSymbolsByGrammar",
          "source": {
            "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
            "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.validator.ts",
            "label": "core/validators/algorithm.validator.ts",
            "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.md",
            "ref": "anatomy:file-context-core-validators-algorithm-validator-ts"
          }
        }
      ],
      "callers": [],
      "exported": false,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 56,
      "name": "intraGrammarDivergentOf",
      "signature": "const intraGrammarDivergentOf = function intraGrammarDivergentOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 7,
      "name": "IntegrityFaces",
      "signature": "interface IntegrityFaces {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 11,
      "name": "GrammarSymbolSite",
      "signature": "interface GrammarSymbolSite {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 16,
      "name": "CROSS_CATALOG_A",
      "signature": "const CROSS_CATALOG_A = \"architecture\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "CROSS_CATALOG_B",
      "signature": "const CROSS_CATALOG_B = \"arch-relationships\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 18,
      "name": "TITLE_STOPWORDS",
      "signature": "const TITLE_STOPWORDS: ReadonlySet<string> = new Set(["
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "TITLE_OVERLAP_MIN",
      "signature": "const TITLE_OVERLAP_MIN = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "MIN_TOKEN_LENGTH",
      "signature": "const MIN_TOKEN_LENGTH = 2;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "WORD_SEPARATOR",
      "signature": "const WORD_SEPARATOR = \" \";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "byName",
      "signature": "const byName = function byName(a: string, b: string): number {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "byGrammar",
      "signature": "const byGrammar = new Map<string, Map<string, GrammarSymbolSite>>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "grammar",
      "signature": "const grammar = byGrammar.get(contract.domain) ?? new Map<string, GrammarSymbolSite>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "site",
      "signature": "const site = grammar.get(production.lhs) ?? { records: new Set<string>(), rhsSet: new Set<string>() };"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "catalogA",
      "signature": "const catalogA = faces.algo.all().filter((contract) => contract.domain === CROSS_CATALOG_A);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "catalogB",
      "signature": "const catalogB = faces.algo.all().filter((contract) => contract.domain === CROSS_CATALOG_B);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "tokensA",
      "signature": "const tokensA = titleTokens(a.title);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 95,
      "name": "declaresDistinct",
      "signature": "const declaresDistinct = function declaresDistinct(contract: Contract | undefined, other: string): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "invalidDistinctDeclarationsOf",
      "signature": "const invalidDistinctDeclarationsOf = function invalidDistinctDeclarationsOf("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 102,
      "name": "ids",
      "signature": "const ids = new Set(faces.algo.all().map((contract) => contract.id));"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 115,
      "name": "integrityIssuesOf",
      "signature": "export const integrityIssuesOf = function integrityIssuesOf(faces: IntegrityFaces): IntegrityIssues {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 116,
      "name": "intraGrammarDivergentSymbols",
      "signature": "const intraGrammarDivergentSymbols = intraGrammarDivergentOf(faces);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 117,
      "name": "byId",
      "signature": "const byId = new Map(faces.algo.all().map((contract) => [contract.id, contract]));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 118,
      "name": "crossCatalogRedundancy",
      "signature": "const crossCatalogRedundancy = crossCatalogRedundancyOf(faces).filter("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 121,
      "name": "invalidDistinctDeclarations",
      "signature": "const invalidDistinctDeclarations = invalidDistinctDeclarationsOf(faces);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 122,
      "name": "generatedIndex",
      "signature": "const generatedIndex = buildSymbolIndex(faces.algo.all());"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 123,
      "name": "committedIndex",
      "signature": "const committedIndex = faces.algo.symbols();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "symbolIndexStale",
      "signature": "const symbolIndexStale = !symbolIndexesMatch(committedIndex, generatedIndex);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-validator-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "algorithm.validator.ts",
  "path": "core/validators/algorithm.validator.ts",
  "ref": "anatomy:file-context-core-validators-algorithm-validator-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/context#folder-context-core-validators",
          "json": "https://banes-lab.com/json/anatomy/context/folder-context-core-validators",
          "label": "core/validators",
          "markdown": "https://banes-lab.com/anatomy/context/folder-context-core-validators.md",
          "ref": "chapter:/anatomy/context#folder-context-core-validators"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "validator",
    "subject": "algorithm",
    "variant": null
  },
  "stats": {
    "bytes": 5578,
    "callable": 9,
    "definitions": 31,
    "edges": 3,
    "exported": 8,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 3,
      "entry": 2,
      "isolated": 26
    },
    "lines": {
      "blank": 12,
      "code": 126,
      "total": 138
    }
  },
  "summary": "126 lines of code and 31 definitions.",
  "text": "https://banes-lab.com/source/context/core/validators/algorithm.validator.ts.txt",
  "tree": "context",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-alias-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/alias.validator.ts",
      "label": "core/validators/alias.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/alias.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-alias-validator-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/context#file-context-core-validators-algorithm-reference-validator-ts",
      "json": "https://banes-lab.com/json/source/context/core/validators/algorithm.reference.validator.ts",
      "label": "core/validators/algorithm.reference.validator.ts",
      "markdown": "https://banes-lab.com/source/context/core/validators/algorithm.reference.validator.ts.md",
      "ref": "anatomy:file-context-core-validators-algorithm-reference-validator-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/context/core/validators",
    "label": "core/validators",
    "markdown": "https://banes-lab.com/api/source/context/core/validators.md",
    "ref": "api:source/context/core/validators"
  }
}
