Skip to content

Main content

Quran Citation Part Count Tool

Inspect literal public citation component count under a supplied separator, without validating canonical verse numbers.

Loading tool…

Description

Split citation by nonempty separator and count all, nonempty, and empty parts separately.

Source-scoped cultural and historical records preserve an edition, naming convention, or local identifier. Literal agreement is useful bookkeeping but does not establish interpretation, authenticity, or authority.

Split citation by nonempty separator and count all, nonempty, and empty parts separately.

When to use this tool

Use Quran Citation Part Count when you need a precise source-token or range consistency check.

How to use the tool and how it works

  1. Enter citation, separator. 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 parts, nonemptyParts, emptyParts. Use the output convention below.

Split citation by nonempty separator and count all, nonempty, and empty parts separately.1

Input fieldMeaning and unitsAccepted input
citationCitationRequired. Text; maximum UTF-16 length 8192.
separatorSeparatorRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
partsPartsRequired. Safe integer.
nonemptyPartsNonempty PartsRequired. Safe integer.
emptyPartsEmpty PartsRequired. Safe integer.
json
{
  "input": {
    "citation": "2:255",
    "separator": ":"
  },
  "output": {
    "parts": 2,
    "nonemptyParts": 2,
    "emptyParts": 0
  }
}

Limitations and assumptions

  • Empty leading, trailing, or repeated separators contribute parts; the citation format and source are not validated.
  • 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 source edition and relevant community or scholarly guidance before interpreting or reusing the material.

References

  1. Calculation and input contract: islamic-studies/quran-citation-part-count — tool.io

Similar or alternative tools