{
  "id": "molformula",
  "kind": "datatype",
  "status": "stable",
  "name": "Molecular Formula",
  "doc": "Molecular formulae indicate the simple numbers of each type of atom in a molecule of a molecular substance.",
  "is_pii": false,
  "categories": [
    "chemistry"
  ],
  "langs": [
    "common"
  ],
  "regexp": "([αβγδφωλμπ]-)?([([]*[A-Z☐][ub]?[a-z]?[₁₂₃₄₅₆₇₈₉₀.]*(\\)?[¹²³⁴⁵⁶⁷⁸⁹⁰]*[⁺⁻]?)?[\\])|,₁₂₃₄₅₆₇₈₉₀]*(·\\(?[-0-9.]*n?\\)?)?)+",
  "examples": [
    {
      "value": "H₂O",
      "description": "water",
      "valid": true
    }
  ],
  "mappings": {
    "autotype": "chemical",
    "schema_org": "molecularFormula",
    "wikidata": "P274"
  },
  "links": [
    {
      "type": "wikipedia",
      "url": "https://en.wikipedia.org/wiki/Chemical_formula"
    },
    {
      "type": "bioschemas",
      "url": "https://bioschemas.org/types/MolecularEntity/0.3-RELEASE-2019_09_02#molecularFormula"
    },
    {
      "type": "schema.org",
      "url": "https://schema.org/molecularFormula"
    },
    {
      "type": "wikidata",
      "url": "https://www.wikidata.org/wiki/Property:P274"
    }
  ],
  "detected_by": {
    "tools": [
      "autotype",
      "metacrafter"
    ],
    "metacrafter_rules": [
      {
        "rule": "molformulabyfieldname",
        "type": "field",
        "match": "text",
        "file": "common/chemistry.yaml"
      }
    ]
  },
  "quality": {
    "score": 73,
    "missing": [
      "anchored regexp",
      "second example",
      "negative example",
      "translation"
    ]
  },
  "source": {
    "path": "data/datatypes/any/chemistry/molformula.yaml",
    "url": "https://github.com/apicrafter/metacrafter-registry/blob/main/data/datatypes/any/chemistry/molformula.yaml",
    "edit_url": "https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/chemistry/molformula.yaml"
  },
  "urls": {
    "html": "http://registry.apicrafter.io/datatype/molformula",
    "json": "http://registry.apicrafter.io/api/v1/datatypes/molformula.json"
  }
}