• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jqueguiner / num2words2
95%
main: 95%

Build:
Build:
LAST BUILD BRANCH: feat/sentence-multilang-ordinals
DEFAULT BRANCH: main
Repo Added 17 Jan 2026 05:49PM UTC
Token Bt3d6ZRNkMfP1R29FrGOxHISSecLQRVXP regen
Build 375 Last
Files 339
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH v1.0.16
branch: v1.0.16
CHANGE BRANCH
x
Reset
Sync Branches
  • v1.0.16
  • add-26-missing-languages
  • add-croatian-language-support-v2
  • add-greek-language-support-v2
  • automated-pypi-publishing
  • ci/add-python-3.14-3.15
  • ci/auto-release-notes
  • ci/camo-cache-purge
  • ci/credit-contributors
  • ci/improve-coverage
  • docs/comprehensive-reference
  • feat/256-364-3decimal-cheque
  • feat/478-aviation-phraseology
  • feat/478-aviation-service-profiles
  • feat/478-en-aero
  • feat/584-fractions
  • feat/sentence-multilang-ordinals
  • fix/478-icao-strict-digits
  • fix/603-decimal-precision
  • fix/ar-e2e-stale-comma
  • fix/aur-ssh-key-newline
  • fix/lint-coverage-exhaustive
  • fix/tr-correctness-487-128
  • fix/upstream-313-en_in-default-inr
  • fix/upstream-431-425-cz-dk-aliases
  • fix/upstream-476-id-str-to-number
  • fix/upstream-483-ru-default-rub
  • fix/upstream-560-uk-gender
  • fix/upstream-573-sv-triple-t
  • fix/upstream-591-am-stray-m
  • force-test-run
  • main
  • master
  • port/upstream-293-id-constants
  • port/upstream-314-romansh
  • port/upstream-370-sv-fyrtio
  • port/upstream-383-uz-cyrl
  • port/upstream-451-dhivehi
  • port/upstream-467-es-crc
  • port/upstream-499-ro-mega-de
  • port/upstream-517-en-large-numbers
  • port/upstream-538-ar-lbp
  • port/upstream-548-en-np
  • port/upstream-556-ko-ordinal
  • port/upstream-559-ru-gender
  • port/upstream-563-ar-yer-usd
  • port/upstream-586-es-hn
  • port/upstream-588-kn-cardinal
  • port/upstream-612-it-currencies
  • port/upstream-613-de-currencies
  • port/upstream-614-fr-currencies
  • port/upstream-615-pt-currencies
  • port/upstream-620-ligurian
  • port/upstream-632-it-diciotto
  • port/upstream-642-nl-duizend
  • port/upstream-652-en-ne
  • port/upstream-654-en-in-crore
  • track-missing-languages
  • v1.0.1
  • v1.0.10
  • v1.0.11
  • v1.0.12
  • v1.0.13
  • v1.0.14
  • v1.0.15
  • v1.0.17
  • v1.0.2
  • v1.0.9

01 May 2026 02:58PM UTC coverage: 95.193% (-0.005%) from 95.198%
25219231483

push

github

web-flow
feat(en_aero): aviation context phraseology — altitude, FL, heading, squawk, runway, freq (#116)

Extends en_Aero_ICAO with the per-context reading rules from FAA AIM
4-2-9 and ICAO Annex 10 vol II, addressing the reviewer's point on the
upstream issue that 'not every aeronautical number is read the same
way'.

New methods on Num2Word_EN_AERO (call directly via the converter
instance — these are aviation-only and don't go through the
language-agnostic dispatcher's to= mechanism):

  to_altitude(value, unit='feet')
    < 10 000 ft: thousands as a single ICAO digit + 'thousand' +
      optional hundreds
        5500 → 'fife thousand fife hundred feet'
    >= 10 000 ft: thousands portion read digit-by-digit
        12500 → 'wun too thousand fife hundred feet'
        25000 → 'too fife thousand feet'

  to_flight_level(value)
    Always 'flight level' + 3-digit-by-digit code.
    230 → 'flight level too tree zero'

  to_heading(value)
    Always 'heading' + 3-digit-by-digit; pads to 3 digits.
    Heading 0 maps to 360 (north convention).
    030 → 'heading zero tree zero'
    360 → 'heading tree six zero'

  to_squawk(value)
    Always 'squawk' + 4-digit code; pads to 4. Validates 0-7777.
    7700 → 'squawk seven seven zero zero'

  to_runway(value)
    Accepts int ('27') or string ('27R', '09L', '36C'). L/R/C suffixes
    spoken as left/right/center; case-insensitive.
    '27R' → 'runway too seven right'

  to_frequency(value)
    Decimal point read as 'decimal'. String input preserves trailing
    zeros that float literals lose.
    121.5 → 'wun too wun decimal fife'

Tests: 17 new cases in tests/test_478_en_aero.py covering each method
including range validation, suffix parsing, and the FAA hundreds /
thousands altitude switch at the 10 000 ft boundary.

Sources cited:
  - FAA AIM 4-2-9 / faa.gov chap11_section_1
  - ICAO Annex 10 vol II
  - SKYbrary phraseology

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

8034 of 8826 branches covered (91.03%)

Branch coverage included in aggregate %.

118 of 122 new or added lines in 2 files covered. (96.72%)

42382 of 44136 relevant lines covered (96.03%)

5.76 hits per line

Relevant lines Covered
Build:
Build:
44136 RELEVANT LINES 42382 COVERED LINES
5.76 HITS PER LINE
Source Files on v1.0.16
  • Tree
  • List 337
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
25219231483 v1.0.16 feat(en_aero): aviation context phraseology — altitude, FL, heading, squawk, runway, freq (#116) Extends en_Aero_ICAO with the per-context reading rules from FAA AIM 4-2-9 and ICAO Annex 10 vol II, addressing the reviewer's point on the upstream ... push 01 May 2026 02:59PM UTC web-flow github
95.19
See All Builds (162)

Badge your Repo: num2words2

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc