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

jqueguiner / num2words2 / 25219230627
95%
master: 94%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 01 May 2026 02:59PM UTC
Jobs 6
Files 337
Run time 3min
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

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

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

Uncovered Changes

Lines Coverage ∆ File
4
91.18
-2.16% num2words2/lang_EN_AERO.py
Jobs
ID Job ID Ran Files Coverage
1 3.14 - 25219230627.1 01 May 2026 03:00PM UTC 337
95.19
GitHub Action Run
2 3.12 - 25219230627.2 01 May 2026 03:00PM UTC 337
95.19
GitHub Action Run
3 3.11 - 25219230627.3 01 May 2026 03:00PM UTC 337
95.19
GitHub Action Run
4 3.15 - 25219230627.4 01 May 2026 03:00PM UTC 337
95.19
GitHub Action Run
5 3.10 - 25219230627.5 01 May 2026 03:00PM UTC 337
95.19
GitHub Action Run
6 3.13 - 25219230627.6 01 May 2026 03:00PM UTC 337
95.19
GitHub Action Run
Source Files on build 25219230627
  • Tree
  • List 337
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • a78448c0 on github
  • Prev Build on main (#25218980885)
  • Next Build on main (#25219511336)
  • Delete
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