AP Style Numerals vs Words Selector Lookup
Bounded basic AP integer rule: general zero–nine words, age/percent/measurement/year numeral exceptions; caller chooses correct context/edition, not full AP fractions, sentence starts or phrase parser. Caller independently verifies context, evidence, reference edition and applicability; not factual authenticity, current legal advice or publication clearance.
Description
Numeral and word choices depend on the adopted style and grammatical context.
Numeral and word choices depend on the adopted style and grammatical context.1
A bounded integer rule does not cover every phrase, fraction or sentence-opening exception.
When to use AP Style Numerals vs Words Selector Lookup
Use this tool to calculate or review the supplied observations under the stated rules. Establish the reviewed evidence, house style or applicable jurisdiction and dated reference.
How to use AP Style Numerals vs Words Selector Lookup and understand its results
- Establish the reviewed evidence, house style or applicable jurisdiction and dated reference.
- Enter observedNonnegativeInteger, callerContext, using the field meanings and rules below, then run the tool.
- Read basicApRenderedNumber, using the output meanings and calculation rules below.
- Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
| Input field | Meaning | Value type | Requirement |
|---|---|---|---|
| observedNonnegativeInteger | Observed nonnegative integer | number | Required |
| callerContext | Caller context | string | Required |
Use a safe-integer value in 0..1000000 and exact context general, age, percentage, measurement or year. In general context, return the English words zero through nine for values below ten; otherwise return the integer's decimal numeral string.
formatted=general AND value<10 ? words[value] : decimalString(value) Use the matching field units and the exact boundary, ordering and reference rules above.
| Output field | Meaning | Value type |
|---|---|---|
| basicApRenderedNumber | Basic ap rendered number | string |
{
"input": {
"observedNonnegativeInteger": 7,
"callerContext": "age"
},
"output": {
"basicApRenderedNumber": "7"
}
} Limitations and assumptions
No prose is parsed and no unit, percent sign or ordinal suffix is appended. Sentence starts, fractions and other AP exceptions are outside the bounded rule.
Missing required fields, unknown fields, wrong types and violated rules return input issues. Numeric values and outputs must be finite.
Alternative or Complementary methods
For a related step, use AP Style Month Abbreviation Rules Lookup: Month abbreviations depend on whether a numbered day accompanies the month in the adopted style. For a complementary comparison, use Title Case vs Sentence Case Headline Selector: Sentence case and title case are headline presentation policies with different capitalization conventions.
References
Similar or alternative tools
- AP Style Month Abbreviation Rules Lookup
Month abbreviations depend on whether a numbered day accompanies the month in the adopted style.
- Title Case vs Sentence Case Headline Selector
Sentence case and title case are headline presentation policies with different capitalization conventions.