Skip to content

Main content

Sudoc Class Stem Single Token Tool

Extract the pre-colon agency/class stem of a SuDocs-shaped classification string; no agency schedule or full classification validity is checked.

Loading tool…

Description

Find the first colon after a nonempty stem and require that stem to start uppercase with only the implemented letters, digits, spaces, periods, slashes, and hyphens.

Catalog identifiers and labels follow local formatting conventions. Splitting or recognizing a token's shape preserves structure without establishing that its identifier or classification is valid.

Find the first colon after a nonempty stem and require that stem to start uppercase with only the implemented letters, digits, spaces, periods, slashes, and hyphens.

When to use this tool

Use Sudoc Class Stem Single Token when you need one explicit catalog-label parsing or formatting step.

How to use the tool and how it works

  1. Enter classNumber. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read stem. Use the output convention below.

Find the first colon after a nonempty stem and require that stem to start uppercase with only the implemented letters, digits, spaces, periods, slashes, and hyphens. Return stem.1

Input fieldMeaning and unitsAccepted input
classNumberClass NumberRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
stemStemRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "classNumber": "Y 4.G 74/7:112-3"
  },
  "output": {
    "stem": "Y 4.G 74/7"
  }
}

Limitations and assumptions

  • Text after the colon is not validated; the stem shape is not proof of an assigned SuDoc class, agency identity, or complete class number.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Consult the cataloging scheme and source record before assigning semantic meaning or a filing order.

References

  1. Calculation and input contract: american-studies/sudoc-class-stem-single-token — tool.io

Similar or alternative tools