code-citation-lint - v0.1.1
    Preparing search index...

    Function detectTypeAndVersion

    • Detects the document type and, for codemeta, the context version. Heuristics (in order):

      • documents with cff-version -> cff
      • documents with a recognizable codemeta @context -> codemeta
      • documents with a schema.org context and a code @type -> schemaorg
      • otherwise falls back to term sniffing

      Parameters

      • document: unknown

      Returns DetectionOutcome