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
- 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.
- Enter fullRank, abbreviatedRank, personName, renderedReference, useAbbreviation using the field table and calculation rules, then run the tool.
- Read expectedReference, matchesExpected. The explanation below defines the units, signs, ordering and any flags or placeholder values.
- 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 field | Meaning | Value type; see rules below | Requirement |
|---|---|---|---|
| fullRank | Full military rank | string | Required |
| abbreviatedRank | Abbreviated rank | string | Required |
| personName | Person name | string | Required |
| renderedReference | Rendered reference | string | Required |
| useAbbreviation | Use abbreviated rank | boolean | Required |
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 field | Meaning | Value type |
|---|---|---|
| expectedReference | Expected reference | string |
| matchesExpected | Matches expected reference | boolean |
{
"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
-
Military Rank Style — tool.io
Similar or alternative tools
- Royalty Title Style
Validate a rendered royal reference against supplied title-use policy.
- Religious Title Style
Validate a religious-title reference against supplied title-use policy.