Skip to content

Commit

Permalink
* Added quote marks around the text of nodes sourced from claim-gen "…
Browse files Browse the repository at this point in the history
…evidence" entries.
  • Loading branch information
Venryx committed May 22, 2024
1 parent 8799303 commit dd1aba5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export abstract class CG_Node {
/** Get the regular, "standalone" text of the claim. (stored in debate-map as text_base) */
static GetTitle_Main(node: CG_Node): string {
const d = node as any;
const result_raw = d.name ?? (d.questionText ?? d.question) ?? d.position ?? d.category ?? d.claim ?? d.argument ?? d.original_example ?? d.quote;
const result_raw = d.name ?? (d.questionText ?? d.question) ?? d.position ?? d.category ?? d.claim ?? d.argument ?? d.original_example ?? (d.quote ? `"${d.quote}"` : null);
const result = (result_raw ?? "").trim(); // fsr, some json files contain line-breaks at start or end, so clean this up
return result.length ? result : null;
}
Expand Down

0 comments on commit dd1aba5

Please sign in to comment.