(entries: { id: string; text: string }[])
| 105 | |
| 106 | /** Build the `ReaderLine` list for a set of sentences, facts already extracted. */ |
| 107 | export function readerLines(entries: { id: string; text: string }[]): ReaderLine[] { |
| 108 | return entries |
| 109 | .filter((entry) => entry.text.trim().length > 0) |
| 110 | .map((entry) => ({ id: entry.id, text: entry.text, facts: factsOf(entry.text) })); |
| 111 | } |
| 112 | |
| 113 | /** The text a rewrite is asked to reword: one sentence per line, in order. */ |
| 114 | export function readerSubjectText(lines: readonly ReaderLine[]): string { |
no test coverage detected