Military Rank Style

Validate a military-rank reference against supplied full or abbreviated form.

Description

Military rank style depends on choosing a full or abbreviated rank before the person’s name.

Military rank style depends on choosing a full or abbreviated rank before the person’s name. This checker compares the selected convention literally.1

Validate a military-rank reference against supplied full or abbreviated form.

When to use Military Rank Style

Use this tool to validate a military-rank reference against supplied full or abbreviated form.

Prepare the text, recorded observations, aligned figures or editorial criteria requested. Confirm what each label, count, timestamp or supplied flag represents before interpreting the result.

How to use Military Rank Style and understand its results

  1. Prepare the text, recorded observations, aligned figures or editorial criteria requested. Confirm what each label, count, timestamp or supplied flag represents before interpreting the result.
  2. Enter fullRank, abbreviatedRank, personName, renderedReference, useAbbreviation using the field table and calculation rules, then run the tool.
  3. Read expectedReference, matchesExpected. The explanation below defines the units, signs, ordering and any flags or placeholder values.
  4. If the tool reports an input issue, correct the values and run it again. Apply the stated assumptions when interpreting a successfully returned result.
Input fieldMeaningValue type; see rules belowRequirement
fullRankFull military rankstringRequired
abbreviatedRankAbbreviated rankstringRequired
personNamePerson namestringRequired
renderedReferenceRendered referencestringRequired
useAbbreviationUse abbreviated rankbooleanRequired

Enter full/abbreviated rank, selection flag, nonblank name and rendering. Trim strings; require the selected rank to be nonblank. Return expected and exact match after trimming rendering.

expected=selectedRank+space+name

Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.

Output fieldMeaningValue type
expectedReferenceExpected referencestring
matchesExpectedMatches expected referenceboolean
json
{
  "input": {
    "fullRank": "General",
    "abbreviatedRank": "Gen.",
    "personName": "Avery Lee",
    "renderedReference": "Gen. Avery Lee",
    "useAbbreviation": true
  },
  "output": {
    "expectedReference": "Gen. Avery Lee",
    "matchesExpected": true
  }
}

Limitations and assumptions

No military rank hierarchy, correct abbreviation or newsroom style guide is embedded.

Numeric inputs must be finite. Follow the calculation-specific rules for overflow, underflow and exceptional cases. Extremely large text inputs are rejected. Missing required fields, extra fields, wrong value types and violations of the calculation rules are input errors. A successfully returned false flag is an evaluated outcome; its meaning is explained above.

Alternative or Complementary methods

Use Royalty Title Style: Validate a rendered royal reference against supplied title-use policy. For a complementary task, use Religious Title Style: Validate a religious-title reference against supplied title-use policy.

References

  1. Military Rank Style — tool.io

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies