MCPcopy
hub / github.com/toon-format/toon / NormalizationOptions

Interface NormalizationOptions

benchmarks/src/normalize.ts:16–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 * Options for answer normalization and comparison
15 */
16export interface NormalizationOptions {
17 /**
18 * Tolerance for floating-point number comparison (e.g., 1e-6).
19 * @default 1e-6
20 */
21 tolerance?: number
22
23 /**
24 * Whether string comparison should be case-sensitive.
25 * @default false
26 */
27 caseSensitive?: boolean
28
29 /**
30 * Allow currency symbols ($, €, etc.) in number extraction.
31 * @default true
32 */
33 allowCurrency?: boolean
34
35 /**
36 * Allow percent signs (%) in number extraction (will divide by 100).
37 * @default true
38 */
39 allowPercent?: boolean
40
41 /**
42 * Number of decimal places to round to for number comparison.
43 * If specified, overrides tolerance-based comparison.
44 */
45 decimalPlaces?: number
46}
47
48interface NormalizedResult {
49 success: boolean

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…