(block: string)
| 161 | if (!turn.answeredFrom) return turn.answer; |
| 162 | const blocks = turn.answer.replace(CODE_LINES, '').split(/\n{2,}/).map(block => block.trim()).filter(block => block && !/^_[^\n]*_$/.test(block)); |
| 163 | const facts = (block: string) => /^(?:- |\d+\. )/.test(block); |
| 164 | if (turn.answeredFrom === 'grounded') { |
| 165 | const sentence = blocks.filter(block => !facts(block)); |
| 166 | return (sentence.length ? sentence : blocks).join('\n\n'); |