{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [
        {
          "file": "core/converters/identifier.converter.ts",
          "name": "resolveTable",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-identifier-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/identifier.converter.ts",
            "label": "core/converters/identifier.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/identifier.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-identifier-converter-ts"
          }
        },
        {
          "file": "core/converters/identifier.converter.ts",
          "name": "resolveTable",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-identifier-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/identifier.converter.ts",
            "label": "core/converters/identifier.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/identifier.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-identifier-converter-ts"
          }
        }
      ],
      "exported": false,
      "flow": "leaf",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "rankOf",
      "signature": "const rankOf = function rankOf(ref: string): number {"
    },
    {
      "callable": true,
      "callees": [
        {
          "file": "core/converters/identifier.converter.ts",
          "name": "rankOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-identifier-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/identifier.converter.ts",
            "label": "core/converters/identifier.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/identifier.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-identifier-converter-ts"
          }
        },
        {
          "file": "core/converters/identifier.converter.ts",
          "name": "rankOf",
          "source": {
            "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-identifier-converter-ts",
            "json": "https://banes-lab.com/json/source/build-scripts/core/converters/identifier.converter.ts",
            "label": "core/converters/identifier.converter.ts",
            "markdown": "https://banes-lab.com/source/build-scripts/core/converters/identifier.converter.ts.md",
            "ref": "anatomy:file-build-scripts-core-converters-identifier-converter-ts"
          }
        }
      ],
      "callers": [],
      "exported": true,
      "flow": "entry",
      "kind": "lexical_declaration",
      "line": 66,
      "name": "resolveTable",
      "signature": "export const resolveTable = function resolveTable(phrases: readonly Phrase[]): ReadonlyMap<string, readonly string[]> {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 20,
      "name": "RESOLVE_KIND",
      "signature": "const RESOLVE_KIND = \"resolve\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 21,
      "name": "SLUGS_PREFIX",
      "signature": "const SLUGS_PREFIX = \"api:slugs/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "PATH_SEPARATOR",
      "signature": "const PATH_SEPARATOR = \"/\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "SPACE",
      "signature": "const SPACE = \" \";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "ACRONYM_OPEN",
      "signature": "const ACRONYM_OPEN = \"(\";"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 25,
      "name": "ACRONYM_CLOSE",
      "signature": "const ACRONYM_CLOSE = \")\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "baseName",
      "signature": "const baseName = function baseName(path: string): string {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 31,
      "name": "withoutArticle",
      "signature": "const withoutArticle = function withoutArticle(title: string): string {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 32,
      "name": "space",
      "signature": "const space = title.indexOf(SPACE);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "acronymOf",
      "signature": "const acronymOf = function acronymOf(title: string): string | null {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "open",
      "signature": "const open = title.lastIndexOf(ACRONYM_OPEN);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "close",
      "signature": "const close = title.lastIndexOf(ACRONYM_CLOSE);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 42,
      "name": "identityPhrases",
      "signature": "export const identityPhrases = function identityPhrases(identities: readonly Identity[]): readonly Phrase[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 44,
      "name": "id",
      "signature": "const id = identity.ref.slice(identity.ref.indexOf(\":\") + 1);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "{ title }",
      "signature": "const { title } = identity;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "own",
      "signature": "const own = [title, id, baseName(title), withoutArticle(title), acronymOf(title)];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 51,
      "name": "definitionPhrases",
      "signature": "export const definitionPhrases = function definitionPhrases(files: readonly NamedSource[]): readonly Phrase[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 58,
      "name": "collection",
      "signature": "const collection = ref.slice(0, ref.indexOf(\":\"));"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "first",
      "signature": "const first = RESOLVE_FIRST.indexOf(collection);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "table",
      "signature": "const table = new Map<string, string[]>();"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 69,
      "name": "slug",
      "signature": "const slug = nameKeyOf(phrase);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 73,
      "name": "held",
      "signature": "const held = table.get(slug) ?? [];"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "resolveLeaves",
      "signature": "export const resolveLeaves = function resolveLeaves("
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 90,
      "name": "answer",
      "signature": "const answer = (ref: string): object => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 91,
      "name": "identity",
      "signature": "const identity = linker.byRef(ref);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 98,
      "name": "leaves",
      "signature": "const leaves = [...table.entries()].map(([slug, refs]): Leaf => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 99,
      "name": "address",
      "signature": "const address = resolveLeaf(slug);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 113,
      "name": "prefixes",
      "signature": "const prefixes = prefixShards([...table.entries()], INDEX_PART_BUDGET);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 114,
      "name": "shards",
      "signature": "const shards = [...prefixes.entries()].map(([prefix, slugs]): Leaf => {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 115,
      "name": "ref",
      "signature": "const ref = SLUGS_PREFIX + prefix;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 116,
      "name": "title",
      "signature": "const title = nameShardTitle(prefix);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 117,
      "name": "map",
      "signature": "const map = Object.fromEntries(slugs);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 124,
      "name": "head",
      "signature": "const head: Leaf = {"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-identifier-converter-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "identifier.converter.ts",
  "path": "core/converters/identifier.converter.ts",
  "ref": "anatomy:file-build-scripts-core-converters-identifier-converter-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "contained-in"
    },
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/build-scripts#folder-build-scripts-core-converters",
          "json": "https://banes-lab.com/json/anatomy/build-scripts/folder-build-scripts-core-converters",
          "label": "core/converters",
          "markdown": "https://banes-lab.com/anatomy/build-scripts/folder-build-scripts-core-converters.md",
          "ref": "chapter:/anatomy/build-scripts#folder-build-scripts-core-converters"
        }
      ],
      "relation": "linked-from"
    }
  ],
  "slots": {
    "concern": "converter",
    "subject": "identifier",
    "variant": null
  },
  "stats": {
    "bytes": 5438,
    "callable": 9,
    "definitions": 35,
    "edges": 2,
    "exported": 20,
    "files": 1,
    "findings": {},
    "flows": {
      "leaf": 1,
      "entry": 1,
      "isolated": 33
    },
    "lines": {
      "blank": 9,
      "code": 140,
      "total": 149
    }
  },
  "summary": "140 lines of code and 35 definitions.",
  "text": "https://banes-lab.com/source/build-scripts/core/converters/identifier.converter.ts.txt",
  "tree": "build-scripts",
  "siblings": {
    "next": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-index-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/index.converter.ts",
      "label": "core/converters/index.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/index.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-index-converter-ts"
    },
    "previous": {
      "href": "https://banes-lab.com/anatomy/build-scripts#file-build-scripts-core-converters-graph-source-converter-ts",
      "json": "https://banes-lab.com/json/source/build-scripts/core/converters/graph.source.converter.ts",
      "label": "core/converters/graph.source.converter.ts",
      "markdown": "https://banes-lab.com/source/build-scripts/core/converters/graph.source.converter.ts.md",
      "ref": "anatomy:file-build-scripts-core-converters-graph-source-converter-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/build-scripts/core/converters",
    "label": "core/converters",
    "markdown": "https://banes-lab.com/api/source/build-scripts/core/converters.md",
    "ref": "api:source/build-scripts/core/converters"
  }
}
