Skip to content

Main content

Public Municipal Code Prefix Tool

Inspect a public code against an explicit prefix and separator policy, without a municipality lookup.

Loading tool…

Description

Construct suppliedPrefix plus an optional required separator and test code's exact prefix.

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.

Construct suppliedPrefix plus an optional required separator and test code's exact prefix.

When to use this tool

Use Public Municipal Code Prefix when you need a precise source-token or range consistency check.

How to use the tool and how it works

  1. Enter code, suppliedPrefix, requireSeparator, 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 prefixMatches, suffix. Inspect prefixMatches before interpreting the associated values.

Construct suppliedPrefix plus an optional required separator and test code's exact prefix. Return the remaining suffix on a match, otherwise an empty suffix.1

Input fieldMeaning and unitsAccepted input
codeCodeRequired. Text; maximum UTF-16 length 8192.
suppliedPrefixSupplied PrefixRequired. Text; maximum UTF-16 length 8192.
requireSeparatorRequire SeparatorRequired. Boolean.
separatorSeparatorRequired. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
prefixMatchesPrefix MatchesRequired. Boolean.
suffixSuffixRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "code": "AB-123",
    "suppliedPrefix": "AB",
    "requireSeparator": true,
    "separator": "-"
  },
  "output": {
    "prefixMatches": true,
    "suffix": "123"
  }
}

Limitations and assumptions

  • An empty suffix may also be a successful match; read prefixMatches and verify actual municipal code rules separately.
  • 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: latin-american-studies/public-municipal-code-prefix — tool.io

Similar or alternative tools