Skip to main content

countable

Generates a countable noun phrase — e.g. 'four just men' — in grammatically correct form.

Parameters

  • COUNT (string or number)

    The input count. Specify singular or plural, or enter a number.

  • MODIFIER (string or list)

    Optional. A string to precede the noun (e.g. 'large'). You can enter multiple modifiers as a list.

  • NOUN (string)

    The input noun. This is inflected as per the COUNT value.

  • NUMBER FORMAT (string)

    Optional. Handles number-to-word conversion. Options:

    • Enter an integer. If the COUNT value is <= this value, it is spelled out.

    • wordsOnly — all numbers are spelled out.

    • digitsOnly — no numbers are spelled out.

    Default: Spell out numbers <= 10

  • ZERO FORMAT (string)

    Optional. How to express 0 in words. Options: zero, no, or a string of your choice (e.g. 'zilch').

    Default: zero.

Examples

ATL in Script

Result

[[countable(1, 'cold', 'beer')]]

One cold beer

[[countable(5, 'cold', 'beer')]]

Five cold beers

[[countable(5, 'cold', 'beer', 'digitsOnly')]]

5 cold beers

[[countable(20, 'cold', 'beer')]]

20 cold beers

[[countable(20, 'cold', 'beer', 'wordsOnly')]]

Twenty cold beers

[[countable(0, 'cold', 'beer', 'digitsOnly')]]

0 cold beers

[[countable(0, 'cold', 'beer', 'wordsOnly', 'no')]]

No cold beers

[[countable('singular', 'prized and sought-after', 'whisky')]]

Prized and sought-after whisky

[[countable('plural', 'prized and sought-after', 'whisky')]]

Prized and sought-after whiskies

[[countable(10, ('cheap', 'ghastly', 'undrinkable'), 'wine')]] 

Ten cheap, ghastly and undrinkable wines