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

  1. Establish the reviewed evidence, house style or applicable jurisdiction and dated reference.
  2. Enter observedNonnegativeInteger, callerContext, using the field meanings and rules below, then run the tool.
  3. Read basicApRenderedNumber, using the output meanings and calculation rules below.
  4. Correct any reported input issue and run again. Before using a successful result, check the stated units, signs, reference scope and observation coverage.
Input fieldMeaningValue typeRequirement
observedNonnegativeIntegerObserved nonnegative integernumberRequired
callerContextCaller contextstringRequired

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 fieldMeaningValue type
basicApRenderedNumberBasic ap rendered numberstring
json
{
  "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

  1. AP Style Numerals vs Words Selector Lookup — tool.io

Similar or alternative tools

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