fix(reasoning): honor explicit whether propositions
This commit is contained in:
@@ -118,10 +118,11 @@ function extractMeaning(node) {
|
||||
};
|
||||
|
||||
if (
|
||||
/\b(status|likelihood|probability|chance|risk|uncertainty)\b/i.test(
|
||||
/^whether\s+/i.test(strippedDescription) &&
|
||||
(/\b(status|likelihood|probability|chance|risk|uncertainty)\b/i.test(
|
||||
String(node?.label || ""),
|
||||
) &&
|
||||
/^whether\s+/i.test(strippedDescription)
|
||||
) ||
|
||||
/^whether\s+/i.test(description))
|
||||
) {
|
||||
return sentenceCase(extractWhetherProposition(strippedDescription));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user