Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create retext plugin: Numbers #13

Open
14 tasks
danielgolden opened this issue Jan 27, 2022 · 0 comments
Open
14 tasks

Create retext plugin: Numbers #13

danielgolden opened this issue Jan 27, 2022 · 0 comments
Labels
new rule Create a a new retext plugin

Comments

@danielgolden
Copy link
Contributor

danielgolden commented Jan 27, 2022

Requirements

When a user breaks one of these rules, provide feedback (See one core docs):

Basics

  • Always write numbers as numerals (3 not three)
  • Use commas for numbers with 4 or more digits
  • Round large numbers if helpful: If absolute numerical accuracy is less important than giving customers a sense of the number, it’s OK to round them to something like 1k (for 1,012) or 324.5 million (for 324,501,082). Use your best judgment with this one.
  • Never write whole numbers with a decimal place and a trailing zero (2 not 2.0)
  • Abbreviate thousand with a lowercase k with no space between the the last number and the letter: 50k.

Decimals and fractions

  • Write fractional values in decimal form.
  • Round fractional numbers 2 decimal places to the right.
  • Include a leading 0 in decimal numbers less than 1.

Money

  • Omit the trailing decimal and 0s for whole dollar amounts.
  • Place the appropriate currency symbol before the dollar amount with no spaces.
  • When including currency with a price, the currency comes at the end with a space between it and the dollar amount.

Percentages

  • Use the % symbol with no space between the number and symbol.
  • For fractional values in decimal form, always include a leading zero.

EXCEPTION - When pinpoint accuracy is necessary, as with Synthetics data, you can use use up to three decimal places in percentages.

Phone numbers

  • Separate numbers with hyphens only (no parentheses, nor spaces between numers)
@danielgolden danielgolden added the new rule Create a a new retext plugin label Jan 27, 2022
@danielgolden danielgolden added this to Backlog in Language Linter V1 via automation Jan 27, 2022
@danielgolden danielgolden moved this from Backlog to Up next in Language Linter V1 Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new rule Create a a new retext plugin
Projects
Development

No branches or pull requests

1 participant