detect method ✓ 100.0%

Last updated: 2026-03-02T11:04:51.015Z

Metrics

LOC: 6 Complexity: 2 Params: 1 Coverage: 100.0% (4/4 lines, 8x executed)

Signature

detect(field: FormField): : ClassifierResult | null

Source Code

  detect(field: FormField): ClassifierResult | null {
    const structured = structuredSignalsFromField(field);
    const result = classifyByTfSoft(structured.signals, structured.context);
    if (result === null) return null;
    return { type: result.type, confidence: result.score };
  },

Dependencies (Outgoing)

graph LR detect["detect"] classifyByTfSoft["classifyByTfSoft"] detect -->|calls| classifyByTfSoft style detect fill:#dbeafe,stroke:#2563eb,stroke-width:2px click detect "e524d9f6725c7557.html" click classifyByTfSoft "0bd31cb0fc7321e5.html"
TargetType
classifyByTfSoft calls

No incoming dependencies.