Reference · Flag source and framing metadata
TagSourcetype
Where a tag comes from, the most trusted first. reviewed: a person looked at the flag and said so. computed:
measured from the drawing by a rule with no judgement in it. wikidata: the flag's Wikidata item says it depicts
a thing of that kind. unreviewed: an automated guess (a Wikimedia Commons category of the drawing's file, or a
rule of thumb on the drawing) that nobody has checked.
Import it
import type { TagSource } from "@johnmorrisdotca/hata/manifest";
Also exported from: @johnmorrisdotca/hata/search
Definition
type TagSource = "reviewed" | "computed" | "wikidata" | "unreviewed";
Examples
import { manifest, type TagSource } from "@johnmorrisdotca/hata/manifest";
const sure: TagSource[] = ["reviewed", "computed"];
console.log((manifest("FR")?.tags ?? []).filter((one) => sure.includes(one.source)).map((one) => one.tag)); // ["plain", "stripes-vertical"][ 'plain', 'stripes-vertical' ]What it prints (run when this page was built)