{
  "definitions": [
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 7,
      "name": "Span",
      "signature": "interface Span {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 12,
      "name": "Guard",
      "signature": "interface Guard {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "interface_declaration",
      "line": 17,
      "name": "Step",
      "signature": "interface Step {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "wordsOf",
      "signature": "export const wordsOf = function wordsOf(phrase: string): readonly string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "words",
      "signature": "const words: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 24,
      "name": "current",
      "signature": "let current = \"\";"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 38,
      "name": "tagOf",
      "signature": "const tagOf = function tagOf(body: string): { readonly closing: boolean; readonly name: string } {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "closing",
      "signature": "const closing = body.startsWith(CLOSING_MARK);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 40,
      "name": "trimmed",
      "signature": "const trimmed = closing ? body.slice(1) : body;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 41,
      "name": "space",
      "signature": "const space = trimmed.indexOf(SPACE);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 45,
      "name": "stepOf",
      "signature": "const stepOf = function stepOf(guard: Guard | null, body: string, open: number, close: number): Step {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 46,
      "name": "tag",
      "signature": "const tag = tagOf(body);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 48,
      "name": "closes",
      "signature": "const closes = tag.closing && tag.name === guard.name;"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 57,
      "name": "protectedSpans",
      "signature": "const protectedSpans = function protectedSpans(text: string): readonly Span[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 59,
      "name": "cursor",
      "signature": "let cursor = 0;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 60,
      "name": "guard",
      "signature": "let guard: Guard | null = null;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 62,
      "name": "open",
      "signature": "const open = text.indexOf(ANGLE_OPEN, cursor);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 63,
      "name": "close",
      "signature": "const close = open === -1 ? -1 : text.indexOf(ANGLE_CLOSE, open);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 67,
      "name": "step",
      "signature": "const step = stepOf(guard, text.slice(open + 1, close), open, close);"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 77,
      "name": "isProtected",
      "signature": "const isProtected = function isProtected(spans: readonly Span[], at: number): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 81,
      "name": "tokensOf",
      "signature": "export const tokensOf = function tokensOf(text: string): readonly WordToken[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 82,
      "name": "spans",
      "signature": "const spans = protectedSpans(text);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 83,
      "name": "tokens",
      "signature": "const tokens: WordToken[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 84,
      "name": "start",
      "signature": "let start = -1;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 85,
      "name": "at",
      "signature": "for (let at = 0; at <= text.length; at += 1) {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 86,
      "name": "char",
      "signature": "const char = at < text.length ? text.charAt(at).toLowerCase() : SPACE;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 87,
      "name": "inWord",
      "signature": "const inWord = WORD_CHARACTERS.includes(char) && !isProtected(spans, at);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/tree#file-core-normalizers-word-normalizer-ts",
  "language": "typescript",
  "layer": "processing",
  "name": "word.normalizer.ts",
  "path": "core/normalizers/word.normalizer.ts",
  "ref": "anatomy:file-core-normalizers-word-normalizer-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/tree#folder-core-normalizers",
          "json": "https://banes-lab.com/json/anatomy/tree/folder-core-normalizers",
          "label": "core/normalizers",
          "markdown": "https://banes-lab.com/anatomy/tree/folder-core-normalizers.md",
          "ref": "chapter:/anatomy/tree#folder-core-normalizers"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "normalizer",
    "subject": "word",
    "variant": null
  },
  "stats": {
    "bytes": 3483,
    "callable": 6,
    "definitions": 27,
    "edges": 0,
    "exported": 10,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 27
    },
    "lines": {
      "blank": 9,
      "code": 89,
      "total": 98
    }
  },
  "summary": "89 lines of code and 27 definitions.",
  "text": "https://banes-lab.com/source/tree/core/normalizers/word.normalizer.ts.txt",
  "tree": "tree",
  "siblings": {
    "next": null,
    "previous": {
      "href": "https://banes-lab.com/anatomy/tree#file-core-normalizers-text-normalizer-ts",
      "json": "https://banes-lab.com/json/source/tree/core/normalizers/text.normalizer.ts",
      "label": "core/normalizers/text.normalizer.ts",
      "markdown": "https://banes-lab.com/source/tree/core/normalizers/text.normalizer.ts.md",
      "ref": "anatomy:file-core-normalizers-text-normalizer-ts"
    }
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/tree/core/normalizers",
    "label": "core/normalizers",
    "markdown": "https://banes-lab.com/api/source/tree/core/normalizers.md",
    "ref": "api:source/tree/core/normalizers"
  }
}
