Commit Graph

29 Commits

Author SHA1 Message Date
Al
217de3a8a2 [addresses] adding the ability to hyphenate the generated unit/floor numbers, either for ranges or simple hyphenated numbers, including hyphenated variants of the letter + number or number + letter forms. Implementing for English but something similar can be done in the other configs. 2017-03-27 01:48:32 -04:00
Al
287d2f4048 [fix] leading zeros on numeric phrases 2017-01-25 01:40:20 -05:00
Al
67d7d94eea [numbers] adding function to format full-width numbers as ASCII 2016-12-24 16:07:31 -05:00
Al
f429bea15b [fix] subtract abs value 2016-10-23 01:11:09 -04:00
Al
0fd431a9d2 [fix] abs 2016-10-22 23:55:30 -04:00
Al
ec54d3de35 [fix] don't convert number to int/float in numeric_phrase (chops leading zeros) 2016-10-22 23:49:58 -04:00
Al
6ef54bcc6f [addresses] Adding metro stations to AddressComponents expansion 2016-08-06 19:36:57 -04:00
Al
eca6fc7de3 [addresses] Implementing whitespace_probability and ordinal_suffix probability for Roman numerals 2016-07-21 17:04:57 -04:00
Al
47f926c4b6 [addresses] Handling digit rewrites (spellout, Roman numerals, etc.) in the base class 2016-07-21 17:04:57 -04:00
Al
4d0506a295 [addresses] Adding Digits, which allows for replacing numbers with their unicode full-width equivalents or doing number spellout 2016-07-21 17:04:57 -04:00
Al
6fc18b9adb [addresses] Roman numerals can be returned by Floor.random, relaxing the Zipfian distribution on floors so we get higher floors 2016-07-21 17:04:57 -04:00
Al
d3a6a032ab [fix] a few errors with non-numbers in numeric_phrase 2016-07-21 17:04:57 -04:00
Al
dfd29911fd [addresses] Implementing Roman numerals and cardinal/ordinal number spellout in numbering base class 2016-07-21 17:04:57 -04:00
Al
c29d1ad947 [addresses] Implementing number_min_abs_value, number_max_abs_value outside of number_abs_value constraint 2016-07-21 17:04:57 -04:00
Al
9d7239d0ad [addresses] Adding null-phrase/null-phrase-alpha-only handling and zero padding to numbered components in sub-building configs 2016-07-21 17:04:57 -04:00
Al
6980565698 [addresses] Allowing null_phrase_probability for alpha, and alpha+digits instead of just for ordinals (mostly for Spain) 2016-07-21 17:04:57 -04:00
Al
24bd95a2fa [numbering] Adding ability to have alpha-specific config (phrases that only apply to lettered apartments, etc.) 2016-07-21 17:04:57 -04:00
Al
985ba85623 [fix] handling None return values e.g. for languages with no configs yet 2016-07-21 17:04:57 -04:00
Al
e5f81a0f81 [addresses] Updates to unit directional probabilities and adding quadrant addresses for units like 1RF 2016-07-21 17:04:57 -04:00
Al
dde8801b3f [addresses] only use ordinal for digits 2016-07-21 17:04:57 -04:00
Al
e02206f2f6 [po boxes] random PO box generation 2016-07-21 17:04:57 -04:00
Al
f96bcd1727 [numbering] choose_alphanumeric_type for base NumericPhrase 2016-07-21 17:04:57 -04:00
Al
3d765e9eca [addresses] Fixing direction_probability, adding ability to have phrases which only apply to numbers, adding the possibility of null phrases to non-numeric "numbers" e.g. A-Z, etc. 2016-07-21 17:04:57 -04:00
Al
90c88a3a24 [fix] None handling and number dictionaries 2016-07-21 17:04:57 -04:00
Al
e13c536b03 [addresses] different dictionaries for sampling cardinal/unit directions, not converting None to a string 2016-07-21 17:04:57 -04:00
Al
9f652591ad [mv] Moving sampling to math.sampling 2016-07-21 17:04:57 -04:00
Al
f026e8a764 [addresses] Adding base class for numeric phrases (appended to a number using numeric/numeric_affix), using probability 1.0 if only one of numeric/numeric_affix/ordinal is specified 2016-07-21 17:04:57 -04:00
Al
f7764b70cd [addresses] implementing null_probability (raw number, no phrase), orindal genders, and direction_probability 2016-07-21 17:04:57 -04:00
Al
d136fb7576 [addresses] base class for numbered components (floors, units, house numbers in some languages/countries). Can generate many variants of a number (e.g. Floor 2, 2nd Floor, Floor #2, Floor No. 2, etc.) 2016-07-21 17:04:57 -04:00