Age Numeral Style
Validate numeral and hyphenation style for an age expression.
Description
Age numeral style constructs a number-based phrase using an optional compound-modifier form.
Age numeral style constructs a number-based phrase using an optional compound-modifier form. It compares the selected string literally.1
Validate numeral and hyphenation style for an age expression.
When to use Age Numeral Style
Use this tool to validate numeral and hyphenation style for an age expression.
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 Age Numeral 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 age, usedAsModifier, renderedAge using the field table and calculation rules, then run the tool.
- Read expectedAge, 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 |
|---|---|---|---|
| age | Age | integer; minimum: 0 | Required |
| usedAsModifier | Age used as a modifier | boolean | Required |
| renderedAge | Rendered age | string | Required |
Enter nonnegative integer age, modifier flag and rendered text. Return expected phrase and exact match after trimming. The nonmodifier form always uses years, including age one.
modifier=age-year-old; otherwise age years old Units, indexing, boundary conditions and exceptional cases are defined in the calculation rules above.
| Output field | Meaning | Value type |
|---|---|---|
| expectedAge | Expected age expression | string |
| matchesExpected | Matches expected expression | boolean |
{
"input": {
"age": 9,
"usedAsModifier": true,
"renderedAge": "9-year-old"
},
"output": {
"expectedAge": "9-year-old",
"matchesExpected": true
}
} Limitations and assumptions
No grammar repair, person identity or publication-specific age style is inferred.
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 Composition Title Style: Validate a composition title against a supplied typographic treatment. For a complementary task, use AP Time Style: Format and validate AP-style clock time.
References
-
Age Numeral Style — tool.io
Similar or alternative tools
- Composition Title Style
Validate a composition title against a supplied typographic treatment.
- AP Time Style
Format and validate AP-style clock time.