Example Changelog Demo
Frontmatter4 fields
Trust
UnverifiedDefault
Status
StableDefault
type
Feature Documentation
title
Citation review
description
Current behavior of the demo citation-review function.

Citation review

reviewCitation checks whether a claim and source pair is ready for editorial review. The function does not decide whether the source supports the claim.

Input

Pass an object with claim and sourceUrl string fields.

Output

The function returns one stable reason code:

CodeMeaning
claim-requiredThe claim is empty.
source-url-invalidThe source is not a URL.
source-https-requiredThe source URL does not use HTTPS.
ready-for-editor-reviewThe structural checks pass.

A successful result includes the trimmed claim and normalized source URL.

Limits

The function does not assess reliability, direct support, neutrality, due weight, or consensus. A person must make those decisions.

Source anchors

Powered by OpenKnowledge.sh