(state: KnowledgeState)
| 326 | |
| 327 | /** Short word shown next to a section heading whose fact is not a direct reading. */ |
| 328 | export function stateMarkerLabel(state: KnowledgeState): string { |
| 329 | switch (state) { |
| 330 | case 'inferred': return 'inferred'; |
| 331 | case 'ambiguous': return 'ambiguous'; |
| 332 | case 'unsupported': return 'not recorded'; |
| 333 | case 'notIndexed': return 'not indexed'; |
| 334 | case 'unknown': return 'no answer'; |
| 335 | case 'known': return ''; |
| 336 | } |
| 337 | } |
| 338 | |
| 339 | /** |
| 340 | * One sentence saying why a fact is empty or untrusted. |