diff options
author | Clayton G. Hobbs <clay@lakeserv.net> | 2016-01-02 13:31:42 -0500 |
---|---|---|
committer | Clayton G. Hobbs <clay@lakeserv.net> | 2016-01-02 13:31:42 -0500 |
commit | 93f09d0d9631bb1c90afd8744ca16bf4b7b79e3b (patch) | |
tree | 1f1f8a9b8a5678d32007b0c30bef860a90d01920 /languageupdater.py | |
parent | 557f0b60cb19b22fd79eb1f81a58139c4942f2c4 (diff) |
Rewrote NumberParser.parse_all_numbers()
Its control flow was confusing before; now it's much more straightforward. We make a string representing classes of words, split that by a regular expression for number words, then parse each number and build up our return string and list. It works just as well as the previous method, is a bit shorter, and I feel that it's clearer as well.
Diffstat (limited to 'languageupdater.py')
0 files changed, 0 insertions, 0 deletions