mathparse 0.2.3__py3-none-any.whl → 0.2.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mathparse/__init__.py +1 -1
- mathparse/mathparse.py +117 -11
- mathparse/mathwords.py +930 -46
- {mathparse-0.2.3.dist-info → mathparse-0.2.5.dist-info}/METADATA +1 -1
- mathparse-0.2.5.dist-info/RECORD +8 -0
- mathparse-0.2.3.dist-info/RECORD +0 -8
- {mathparse-0.2.3.dist-info → mathparse-0.2.5.dist-info}/WHEEL +0 -0
- {mathparse-0.2.3.dist-info → mathparse-0.2.5.dist-info}/licenses/LICENSE +0 -0
- {mathparse-0.2.3.dist-info → mathparse-0.2.5.dist-info}/top_level.txt +0 -0
mathparse/__init__.py
CHANGED
mathparse/mathparse.py
CHANGED
|
@@ -79,6 +79,41 @@ def is_word(word: str, language: str) -> bool:
|
|
|
79
79
|
return word in words
|
|
80
80
|
|
|
81
81
|
|
|
82
|
+
def create_unicode_word_boundary_pattern(word: str) -> str:
|
|
83
|
+
"""
|
|
84
|
+
Create a regex pattern with Unicode-aware word boundaries.
|
|
85
|
+
|
|
86
|
+
Standard regex \\b word boundaries don't work with non-ASCII characters
|
|
87
|
+
(e.g., Devanagari, Arabic, Hebrew, Chinese, Thai, etc.). This function
|
|
88
|
+
creates a pattern that works across all Unicode scripts.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
word (str): The word to create a boundary pattern for
|
|
92
|
+
|
|
93
|
+
Returns:
|
|
94
|
+
str: A regex pattern string with proper Unicode boundaries
|
|
95
|
+
|
|
96
|
+
Examples:
|
|
97
|
+
>>> create_unicode_word_boundary_pattern("two")
|
|
98
|
+
'(?<![\\w])two(?![\\w])'
|
|
99
|
+
>>> create_unicode_word_boundary_pattern("दो") # Hindi "two"
|
|
100
|
+
'(?:^|(?<=[\\s+\\-*/^()]))दो(?:$|(?=[\\s+\\-*/^()]))'
|
|
101
|
+
"""
|
|
102
|
+
# Check if word contains only ASCII alphanumeric characters
|
|
103
|
+
if word.isascii() and word.replace('-', '').replace("'", '').isalnum():
|
|
104
|
+
# For ASCII words, use standard word boundaries
|
|
105
|
+
return r'\b' + re.escape(word) + r'\b'
|
|
106
|
+
else:
|
|
107
|
+
# For non-ASCII (Unicode) words, use space/operator boundaries
|
|
108
|
+
# This pattern matches the word when it's:
|
|
109
|
+
# - At the start of string OR preceded by whitespace/operator
|
|
110
|
+
# - At the end of string OR followed by whitespace/operator
|
|
111
|
+
escaped_word = re.escape(word)
|
|
112
|
+
# Boundary characters: whitespace, operators, parentheses
|
|
113
|
+
boundary = r'[\s+\-*/^()]'
|
|
114
|
+
return f'(?:^|(?<={boundary})){escaped_word}(?:$|(?={boundary}))'
|
|
115
|
+
|
|
116
|
+
|
|
82
117
|
def find_word_groups(string: str, words: list) -> list:
|
|
83
118
|
"""
|
|
84
119
|
Find matches for words in the format "3 thousand 6 hundred 2".
|
|
@@ -302,9 +337,10 @@ def replace_word_tokens(
|
|
|
302
337
|
|
|
303
338
|
# Replace number words with numeric values
|
|
304
339
|
for number in frozenset(numbers.keys()):
|
|
305
|
-
# Use word boundaries to prevent partial matches
|
|
306
|
-
# (e.g., "nine" in "nineteen")
|
|
307
|
-
|
|
340
|
+
# Use Unicode-aware word boundaries to prevent partial matches
|
|
341
|
+
# (e.g., "nine" in "nineteen") and support non-ASCII scripts
|
|
342
|
+
# (e.g., Devanagari, Arabic, Hebrew, Chinese, etc.)
|
|
343
|
+
pattern = create_unicode_word_boundary_pattern(number)
|
|
308
344
|
if re.search(pattern, string):
|
|
309
345
|
string = re.sub(pattern, str(numbers[number]), string)
|
|
310
346
|
|
|
@@ -364,13 +400,15 @@ def preprocess_unary_operators(tokens: list) -> list:
|
|
|
364
400
|
* At the beginning of the expression
|
|
365
401
|
* After an opening parenthesis '('
|
|
366
402
|
* After a binary operator `(+, -, *, /, ^)`
|
|
403
|
+
* After a unary function `(sqrt, log, neg)`
|
|
367
404
|
"""
|
|
368
405
|
if not tokens:
|
|
369
406
|
return tokens
|
|
370
407
|
|
|
371
408
|
processed_tokens = []
|
|
372
409
|
|
|
373
|
-
|
|
410
|
+
# A following minus sign should be treated as unary (negative)
|
|
411
|
+
unary_contexts = mathwords.BINARY_OPERATORS | {'('}
|
|
374
412
|
|
|
375
413
|
for i, token in enumerate(tokens):
|
|
376
414
|
if token == '-':
|
|
@@ -382,8 +420,9 @@ def preprocess_unary_operators(tokens: list) -> list:
|
|
|
382
420
|
is_unary_minus = True
|
|
383
421
|
elif i > 0:
|
|
384
422
|
prev_token = tokens[i - 1]
|
|
385
|
-
# A unary minus after opening parenthesis
|
|
386
|
-
|
|
423
|
+
# A unary minus after opening parenthesis, binary operators,
|
|
424
|
+
# or unary functions
|
|
425
|
+
if prev_token in unary_contexts or is_unary(prev_token):
|
|
387
426
|
is_unary_minus = True
|
|
388
427
|
|
|
389
428
|
if is_unary_minus:
|
|
@@ -403,6 +442,7 @@ def to_postfix(tokens: list) -> list:
|
|
|
403
442
|
Convert a list of evaluatable tokens to postfix format.
|
|
404
443
|
"""
|
|
405
444
|
precedence = {
|
|
445
|
+
'.': 5,
|
|
406
446
|
'/': 4,
|
|
407
447
|
'*': 4,
|
|
408
448
|
'+': 3,
|
|
@@ -499,6 +539,23 @@ def evaluate_postfix(tokens: list) -> Union[int, float, str, Decimal]:
|
|
|
499
539
|
total = 'undefined'
|
|
500
540
|
else:
|
|
501
541
|
total = Decimal(str(a)) / Decimal(str(b))
|
|
542
|
+
elif token == '.':
|
|
543
|
+
# Treat decimal points as a binary operator that combines the
|
|
544
|
+
# integer and fractional part of two numbers
|
|
545
|
+
# Example: 53 . 25 = 53.25, -3 . 5 = -3.5
|
|
546
|
+
if b == 0:
|
|
547
|
+
total = Decimal(a)
|
|
548
|
+
else:
|
|
549
|
+
# Count the digits in b to determine the divisor
|
|
550
|
+
digits = len(str(int(b)))
|
|
551
|
+
divisor = 10 ** digits
|
|
552
|
+
fractional_part = b / divisor
|
|
553
|
+
# Handle negative numbers correctly: -3 . 5 should be -3.5,
|
|
554
|
+
# not -2.5
|
|
555
|
+
if a < 0:
|
|
556
|
+
total = a - fractional_part
|
|
557
|
+
else:
|
|
558
|
+
total = a + fractional_part
|
|
502
559
|
else:
|
|
503
560
|
raise PostfixTokenEvaluationException(
|
|
504
561
|
'Unknown token "{}"'.format(token)
|
|
@@ -564,8 +621,22 @@ def tokenize(string: str, language: str = None, escape: str = '___') -> list:
|
|
|
564
621
|
string = string.replace(spaced_phrase, phrase)
|
|
565
622
|
|
|
566
623
|
# Binary operators must have space around them to be tokenized properly
|
|
624
|
+
# Special handling for minus sign: preserve leading negatives
|
|
567
625
|
for operator in mathwords.BINARY_OPERATORS:
|
|
568
|
-
|
|
626
|
+
if operator == '-':
|
|
627
|
+
# For minus sign, use a pattern that only spaces it when it's
|
|
628
|
+
# clearly a binary operator (after digits or closing parenthesis).
|
|
629
|
+
# This preserves leading negatives like "-3" and distinguishes
|
|
630
|
+
# between:
|
|
631
|
+
# - "What is -3 + 3" --> "-3 + 3" (minus is part of number)
|
|
632
|
+
# - "5 - 3" --> "5 - 3" (minus is binary operator, needs spacing)
|
|
633
|
+
# - "math - 4" --> "- 4" (minus after letters is not a binary
|
|
634
|
+
# operator)
|
|
635
|
+
# Only add spaces around minus when preceded by a digit or closing
|
|
636
|
+
# parenthesis
|
|
637
|
+
string = re.sub(r'([\d)])\s*-\s*', r'\1 - ', string)
|
|
638
|
+
else:
|
|
639
|
+
string = string.replace(operator, f' {operator} ')
|
|
569
640
|
|
|
570
641
|
# Parenthesis must have space around them to be tokenized properly
|
|
571
642
|
string = string.replace('(', ' ( ')
|
|
@@ -704,11 +775,46 @@ def extract_expression(dirty_string: str, language: str) -> str:
|
|
|
704
775
|
start_index = 0
|
|
705
776
|
end_index = len(tokens)
|
|
706
777
|
|
|
707
|
-
|
|
778
|
+
# Find the start of the mathematical expression
|
|
779
|
+
# Skip over non-mathematical tokens AND isolated binary operators
|
|
780
|
+
for i, part in enumerate(tokens):
|
|
708
781
|
if is_symbol(part) or is_word(part, language):
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
782
|
+
# A potential start was found, so check if it's a standalone binary
|
|
783
|
+
# operator. Binary operators (except '(') are only valid at the
|
|
784
|
+
# start if they are unary (such as a leading minus for a negative
|
|
785
|
+
# number)
|
|
786
|
+
if part in mathwords.BINARY_OPERATORS and part != '(':
|
|
787
|
+
# For a binary operator to be the start of an expression, it
|
|
788
|
+
# must be:
|
|
789
|
+
# 1. At the very beginning (position 0) - could be unary minus
|
|
790
|
+
# 2. OR all previous tokens were non-mathematical - also could
|
|
791
|
+
# be unary
|
|
792
|
+
# If there were non-math tokens before it, it's likely a
|
|
793
|
+
# separator
|
|
794
|
+
|
|
795
|
+
# Check if all previous tokens are non-mathematical
|
|
796
|
+
all_prev_non_math = True
|
|
797
|
+
for j in range(i):
|
|
798
|
+
if is_symbol(tokens[j]) or is_word(tokens[j], language):
|
|
799
|
+
all_prev_non_math = False
|
|
800
|
+
break
|
|
801
|
+
|
|
802
|
+
# Only include this operator if at start OR all previous
|
|
803
|
+
# non-math AND followed by a mathematical token
|
|
804
|
+
if all_prev_non_math and i + 1 < len(tokens):
|
|
805
|
+
next_token = tokens[i + 1]
|
|
806
|
+
if (
|
|
807
|
+
is_int(next_token) or is_float(next_token) or
|
|
808
|
+
is_constant(next_token) or is_unary(next_token) or
|
|
809
|
+
next_token == '(' or is_word(next_token, language)
|
|
810
|
+
):
|
|
811
|
+
start_index = i
|
|
812
|
+
break
|
|
813
|
+
else:
|
|
814
|
+
# Start indexes can be an opening parenthesis, or a non-binary
|
|
815
|
+
# operator
|
|
816
|
+
start_index = i
|
|
817
|
+
break
|
|
712
818
|
|
|
713
819
|
for part in reversed(tokens):
|
|
714
820
|
if is_symbol(part) or is_word(part, language):
|
mathparse/mathwords.py
CHANGED
|
@@ -4,14 +4,17 @@ Utility methods for getting math word terms.
|
|
|
4
4
|
import math
|
|
5
5
|
|
|
6
6
|
BINARY_OPERATORS = {
|
|
7
|
-
'^', '*', '/', '+', '-'
|
|
7
|
+
'^', '*', '/', '+', '-', '.'
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
# Each key is an ISO 639-2 language code
|
|
11
|
+
# https://www.loc.gov/standards/iso639-2/php/code_list.php
|
|
10
12
|
MATH_WORDS = {
|
|
11
13
|
'DUT': {
|
|
12
14
|
'prefix_unary_operators': {
|
|
13
15
|
'vierkantswortel van': 'sqrt',
|
|
14
|
-
'wortel van': 'sqrt'
|
|
16
|
+
'wortel van': 'sqrt',
|
|
17
|
+
'logaritme van': 'log'
|
|
15
18
|
},
|
|
16
19
|
'postfix_unary_operators': {
|
|
17
20
|
'kwadraat': '^ 2'
|
|
@@ -66,7 +69,9 @@ MATH_WORDS = {
|
|
|
66
69
|
'ENG': {
|
|
67
70
|
'prefix_unary_operators': {
|
|
68
71
|
'square root of': 'sqrt',
|
|
69
|
-
'negative': 'neg'
|
|
72
|
+
'negative': 'neg',
|
|
73
|
+
'logarithm of': 'log',
|
|
74
|
+
'log of': 'log'
|
|
70
75
|
},
|
|
71
76
|
'postfix_unary_operators': {
|
|
72
77
|
'squared': '^ 2',
|
|
@@ -77,7 +82,8 @@ MATH_WORDS = {
|
|
|
77
82
|
'divided by': '/',
|
|
78
83
|
'minus': '-',
|
|
79
84
|
'times': '*',
|
|
80
|
-
'to the power of': '^'
|
|
85
|
+
'to the power of': '^',
|
|
86
|
+
'point': '.'
|
|
81
87
|
},
|
|
82
88
|
'numbers': {
|
|
83
89
|
'zero': 0,
|
|
@@ -119,7 +125,8 @@ MATH_WORDS = {
|
|
|
119
125
|
},
|
|
120
126
|
'FRE': {
|
|
121
127
|
'prefix_unary_operators': {
|
|
122
|
-
'racine carrée de': 'sqrt'
|
|
128
|
+
'racine carrée de': 'sqrt',
|
|
129
|
+
'logarithme de': 'log'
|
|
123
130
|
},
|
|
124
131
|
'postfix_unary_operators': {
|
|
125
132
|
'au carré': '^ 2',
|
|
@@ -132,7 +139,8 @@ MATH_WORDS = {
|
|
|
132
139
|
'fois': '*',
|
|
133
140
|
'équarri': '^ 2',
|
|
134
141
|
'en cubes': '^ 3',
|
|
135
|
-
'à la puissance': '^'
|
|
142
|
+
'à la puissance': '^',
|
|
143
|
+
'virgule': '.'
|
|
136
144
|
},
|
|
137
145
|
'numbers': {
|
|
138
146
|
'zéro': 0,
|
|
@@ -178,7 +186,8 @@ MATH_WORDS = {
|
|
|
178
186
|
'GER': {
|
|
179
187
|
'prefix_unary_operators': {
|
|
180
188
|
'Quadratwurzel von': 'sqrt',
|
|
181
|
-
'Wurzel von': 'sqrt'
|
|
189
|
+
'Wurzel von': 'sqrt',
|
|
190
|
+
'Logarithmus von': 'log'
|
|
182
191
|
},
|
|
183
192
|
'postfix_unary_operators': {
|
|
184
193
|
'quadriert': '^ 2',
|
|
@@ -237,7 +246,8 @@ MATH_WORDS = {
|
|
|
237
246
|
},
|
|
238
247
|
'GRE': {
|
|
239
248
|
'prefix_unary_operators': {
|
|
240
|
-
'τετραγωνική ρίζα του': 'sqrt'
|
|
249
|
+
'τετραγωνική ρίζα του': 'sqrt',
|
|
250
|
+
'λογάριθμος του': 'log'
|
|
241
251
|
},
|
|
242
252
|
'postfix_unary_operators': {
|
|
243
253
|
'στο τετράγωνο': '^ 2',
|
|
@@ -293,7 +303,8 @@ MATH_WORDS = {
|
|
|
293
303
|
},
|
|
294
304
|
'ITA': {
|
|
295
305
|
'prefix_unary_operators': {
|
|
296
|
-
'radice quadrata di': 'sqrt'
|
|
306
|
+
'radice quadrata di': 'sqrt',
|
|
307
|
+
'logaritmo di': 'log'
|
|
297
308
|
},
|
|
298
309
|
'postfix_unary_operators': {
|
|
299
310
|
'al quadrato': '^ 2',
|
|
@@ -348,7 +359,8 @@ MATH_WORDS = {
|
|
|
348
359
|
},
|
|
349
360
|
'MAR': {
|
|
350
361
|
'prefix_unary_operators': {
|
|
351
|
-
'वर्गमूल': 'sqrt'
|
|
362
|
+
'वर्गमूल': 'sqrt',
|
|
363
|
+
'लॉगरिथम': 'log'
|
|
352
364
|
},
|
|
353
365
|
'postfix_unary_operators': {
|
|
354
366
|
'वर्ग': '^ 2',
|
|
@@ -364,35 +376,35 @@ MATH_WORDS = {
|
|
|
364
376
|
'गुण्या करण्यासाठी': '^'
|
|
365
377
|
},
|
|
366
378
|
'numbers': {
|
|
367
|
-
'शून्य':
|
|
368
|
-
'एक':
|
|
369
|
-
'दोन':
|
|
370
|
-
'तीन':
|
|
371
|
-
'चार':
|
|
372
|
-
'पाच':
|
|
373
|
-
'सहा':
|
|
374
|
-
'सात':
|
|
375
|
-
'आठ':
|
|
376
|
-
'नऊ':
|
|
377
|
-
'दहा':
|
|
378
|
-
'अकरा':
|
|
379
|
-
'बारा':
|
|
380
|
-
'तेरा':
|
|
381
|
-
'चौदा':
|
|
382
|
-
'पंधरा':
|
|
383
|
-
'सोळा':
|
|
384
|
-
'सतरा':
|
|
385
|
-
'अठरा':
|
|
386
|
-
'एकोणीस':
|
|
387
|
-
'वीस':
|
|
388
|
-
'तीस':
|
|
389
|
-
'चाळीस':
|
|
390
|
-
'पन्नास':
|
|
391
|
-
'साठ':
|
|
392
|
-
'सत्तर':
|
|
393
|
-
'ऐंशी':
|
|
394
|
-
'नव्वद':
|
|
395
|
-
'शंभर':
|
|
379
|
+
'शून्य': 0,
|
|
380
|
+
'एक': 1,
|
|
381
|
+
'दोन': 2,
|
|
382
|
+
'तीन': 3,
|
|
383
|
+
'चार': 4,
|
|
384
|
+
'पाच': 5,
|
|
385
|
+
'सहा': 6,
|
|
386
|
+
'सात': 7,
|
|
387
|
+
'आठ': 8,
|
|
388
|
+
'नऊ': 9,
|
|
389
|
+
'दहा': 10,
|
|
390
|
+
'अकरा': 11,
|
|
391
|
+
'बारा': 12,
|
|
392
|
+
'तेरा': 13,
|
|
393
|
+
'चौदा': 14,
|
|
394
|
+
'पंधरा': 15,
|
|
395
|
+
'सोळा': 16,
|
|
396
|
+
'सतरा': 17,
|
|
397
|
+
'अठरा': 18,
|
|
398
|
+
'एकोणीस': 19,
|
|
399
|
+
'वीस': 20,
|
|
400
|
+
'तीस': 30,
|
|
401
|
+
'चाळीस': 40,
|
|
402
|
+
'पन्नास': 50,
|
|
403
|
+
'साठ': 60,
|
|
404
|
+
'सत्तर': 70,
|
|
405
|
+
'ऐंशी': 80,
|
|
406
|
+
'नव्वद': 90,
|
|
407
|
+
'शंभर': 100
|
|
396
408
|
},
|
|
397
409
|
'scales': {
|
|
398
410
|
'शंभर': 100,
|
|
@@ -405,7 +417,8 @@ MATH_WORDS = {
|
|
|
405
417
|
'RUS': {
|
|
406
418
|
'prefix_unary_operators': {
|
|
407
419
|
'квадратный корень из': 'sqrt',
|
|
408
|
-
'корень из': 'sqrt'
|
|
420
|
+
'корень из': 'sqrt',
|
|
421
|
+
'логарифм': 'log'
|
|
409
422
|
},
|
|
410
423
|
'postfix_unary_operators': {
|
|
411
424
|
'в квадрате': '^ 2',
|
|
@@ -467,7 +480,8 @@ MATH_WORDS = {
|
|
|
467
480
|
},
|
|
468
481
|
'POR': {
|
|
469
482
|
'prefix_unary_operators': {
|
|
470
|
-
'raiz quadrada de': 'sqrt'
|
|
483
|
+
'raiz quadrada de': 'sqrt',
|
|
484
|
+
'logaritmo de': 'log'
|
|
471
485
|
},
|
|
472
486
|
'postfix_unary_operators': {
|
|
473
487
|
'ao quadrado': '^ 2',
|
|
@@ -522,7 +536,8 @@ MATH_WORDS = {
|
|
|
522
536
|
'UKR': {
|
|
523
537
|
'prefix_unary_operators': {
|
|
524
538
|
'квадратний корінь з': 'sqrt',
|
|
525
|
-
'корінь з': 'sqrt'
|
|
539
|
+
'корінь з': 'sqrt',
|
|
540
|
+
'логарифм': 'log'
|
|
526
541
|
},
|
|
527
542
|
'postfix_unary_operators': {
|
|
528
543
|
'у квадраті': '^ 2',
|
|
@@ -584,7 +599,8 @@ MATH_WORDS = {
|
|
|
584
599
|
},
|
|
585
600
|
'ESP': {
|
|
586
601
|
'prefix_unary_operators': {
|
|
587
|
-
'raiz cuadrada de': 'sqrt'
|
|
602
|
+
'raiz cuadrada de': 'sqrt',
|
|
603
|
+
'logaritmo de': 'log'
|
|
588
604
|
},
|
|
589
605
|
'postfix_unary_operators': {
|
|
590
606
|
'al cuadrado': '^ 2',
|
|
@@ -596,7 +612,8 @@ MATH_WORDS = {
|
|
|
596
612
|
'menos': '-',
|
|
597
613
|
'por': '*',
|
|
598
614
|
'veces': '*',
|
|
599
|
-
'elevado al': '^'
|
|
615
|
+
'elevado al': '^',
|
|
616
|
+
'punto': '.'
|
|
600
617
|
},
|
|
601
618
|
'numbers': {
|
|
602
619
|
'cero': 0,
|
|
@@ -638,7 +655,8 @@ MATH_WORDS = {
|
|
|
638
655
|
},
|
|
639
656
|
'THA': {
|
|
640
657
|
'prefix_unary_operators': {
|
|
641
|
-
'สแควรูท': 'sqrt'
|
|
658
|
+
'สแควรูท': 'sqrt',
|
|
659
|
+
'ลอการิทึม': 'log'
|
|
642
660
|
},
|
|
643
661
|
'postfix_unary_operators': {
|
|
644
662
|
'ยกกำลังสอง': '^ 2',
|
|
@@ -695,7 +713,8 @@ MATH_WORDS = {
|
|
|
695
713
|
'prefix_unary_operators': {
|
|
696
714
|
'平方根': 'sqrt',
|
|
697
715
|
'开方': 'sqrt',
|
|
698
|
-
'负': 'neg'
|
|
716
|
+
'负': 'neg',
|
|
717
|
+
'对数': 'log'
|
|
699
718
|
},
|
|
700
719
|
'postfix_unary_operators': {
|
|
701
720
|
'平方': '^ 2',
|
|
@@ -777,6 +796,870 @@ MATH_WORDS = {
|
|
|
777
796
|
'千亿': 100000000000,
|
|
778
797
|
'万亿': 1000000000000
|
|
779
798
|
}
|
|
799
|
+
},
|
|
800
|
+
'JPN': {
|
|
801
|
+
'prefix_unary_operators': {
|
|
802
|
+
'平方根': 'sqrt',
|
|
803
|
+
'ルート': 'sqrt',
|
|
804
|
+
'負の': 'neg'
|
|
805
|
+
},
|
|
806
|
+
'postfix_unary_operators': {
|
|
807
|
+
'二乗': '^ 2',
|
|
808
|
+
'三乗': '^ 3',
|
|
809
|
+
'の二乗': '^ 2',
|
|
810
|
+
'の三乗': '^ 3'
|
|
811
|
+
},
|
|
812
|
+
'binary_operators': {
|
|
813
|
+
'たす': '+',
|
|
814
|
+
'プラス': '+',
|
|
815
|
+
'わる': '/',
|
|
816
|
+
'割る': '/',
|
|
817
|
+
'ひく': '-',
|
|
818
|
+
'マイナス': '-',
|
|
819
|
+
'かける': '*',
|
|
820
|
+
'掛ける': '*',
|
|
821
|
+
'乗': '^',
|
|
822
|
+
'の': '^'
|
|
823
|
+
},
|
|
824
|
+
'numbers': {
|
|
825
|
+
'ゼロ': 0, '零': 0,
|
|
826
|
+
'一': 1, 'いち': 1,
|
|
827
|
+
'二': 2, 'に': 2,
|
|
828
|
+
'三': 3, 'さん': 3,
|
|
829
|
+
'四': 4, 'し': 4, 'よん': 4,
|
|
830
|
+
'五': 5, 'ご': 5,
|
|
831
|
+
'六': 6, 'ろく': 6,
|
|
832
|
+
'七': 7, 'しち': 7, 'なな': 7,
|
|
833
|
+
'八': 8, 'はち': 8,
|
|
834
|
+
'九': 9, 'きゅう': 9, 'く': 9,
|
|
835
|
+
'十': 10, 'じゅう': 10,
|
|
836
|
+
'十一': 11, 'じゅういち': 11,
|
|
837
|
+
'十二': 12, 'じゅうに': 12,
|
|
838
|
+
'十三': 13, 'じゅうさん': 13,
|
|
839
|
+
'十四': 14, 'じゅうし': 14,
|
|
840
|
+
'十五': 15, 'じゅうご': 15,
|
|
841
|
+
'十六': 16, 'じゅうろく': 16,
|
|
842
|
+
'十七': 17, 'じゅうしち': 17,
|
|
843
|
+
'十八': 18, 'じゅうはち': 18,
|
|
844
|
+
'十九': 19, 'じゅうきゅう': 19,
|
|
845
|
+
'二十': 20, 'にじゅう': 20,
|
|
846
|
+
'三十': 30, 'さんじゅう': 30,
|
|
847
|
+
'四十': 40, 'よんじゅう': 40,
|
|
848
|
+
'五十': 50, 'ごじゅう': 50,
|
|
849
|
+
'六十': 60, 'ろくじゅう': 60,
|
|
850
|
+
'七十': 70, 'ななじゅう': 70,
|
|
851
|
+
'八十': 80, 'はちじゅう': 80,
|
|
852
|
+
'九十': 90, 'きゅうじゅう': 90
|
|
853
|
+
},
|
|
854
|
+
'scales': {
|
|
855
|
+
'百': 100, 'ひゃく': 100,
|
|
856
|
+
'千': 1000, 'せん': 1000,
|
|
857
|
+
'万': 10000, 'まん': 10000,
|
|
858
|
+
'十万': 100000,
|
|
859
|
+
'百万': 1000000,
|
|
860
|
+
'千万': 10000000,
|
|
861
|
+
'億': 100000000, 'おく': 100000000,
|
|
862
|
+
'兆': 1000000000000, 'ちょう': 1000000000000
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
'KOR': {
|
|
866
|
+
'prefix_unary_operators': {
|
|
867
|
+
'제곱근': 'sqrt',
|
|
868
|
+
'루트': 'sqrt'
|
|
869
|
+
},
|
|
870
|
+
'postfix_unary_operators': {
|
|
871
|
+
'제곱': '^ 2',
|
|
872
|
+
'세제곱': '^ 3'
|
|
873
|
+
},
|
|
874
|
+
'binary_operators': {
|
|
875
|
+
'더하기': '+',
|
|
876
|
+
'플러스': '+',
|
|
877
|
+
'나누기': '/',
|
|
878
|
+
'빼기': '-',
|
|
879
|
+
'마이너스': '-',
|
|
880
|
+
'곱하기': '*',
|
|
881
|
+
'곱': '*',
|
|
882
|
+
'의': '^',
|
|
883
|
+
'승': '^'
|
|
884
|
+
},
|
|
885
|
+
'numbers': {
|
|
886
|
+
'영': 0, '공': 0,
|
|
887
|
+
'일': 1, '하나': 1,
|
|
888
|
+
'이': 2, '둘': 2,
|
|
889
|
+
'삼': 3, '셋': 3,
|
|
890
|
+
'사': 4, '넷': 4,
|
|
891
|
+
'오': 5, '다섯': 5,
|
|
892
|
+
'육': 6, '여섯': 6,
|
|
893
|
+
'칠': 7, '일곱': 7,
|
|
894
|
+
'팔': 8, '여덟': 8,
|
|
895
|
+
'구': 9, '아홉': 9,
|
|
896
|
+
'십': 10, '열': 10,
|
|
897
|
+
'십일': 11,
|
|
898
|
+
'십이': 12,
|
|
899
|
+
'십삼': 13,
|
|
900
|
+
'십사': 14,
|
|
901
|
+
'십오': 15,
|
|
902
|
+
'십육': 16,
|
|
903
|
+
'십칠': 17,
|
|
904
|
+
'십팔': 18,
|
|
905
|
+
'십구': 19,
|
|
906
|
+
'이십': 20, '스물': 20,
|
|
907
|
+
'삼십': 30, '서른': 30,
|
|
908
|
+
'사십': 40, '마흔': 40,
|
|
909
|
+
'오십': 50, '쉰': 50,
|
|
910
|
+
'육십': 60, '예순': 60,
|
|
911
|
+
'칠십': 70, '일흔': 70,
|
|
912
|
+
'팔십': 80, '여든': 80,
|
|
913
|
+
'구십': 90, '아흔': 90
|
|
914
|
+
},
|
|
915
|
+
'scales': {
|
|
916
|
+
'백': 100,
|
|
917
|
+
'천': 1000,
|
|
918
|
+
'만': 10000,
|
|
919
|
+
'십만': 100000,
|
|
920
|
+
'백만': 1000000,
|
|
921
|
+
'천만': 10000000,
|
|
922
|
+
'억': 100000000,
|
|
923
|
+
'조': 1000000000000
|
|
924
|
+
}
|
|
925
|
+
},
|
|
926
|
+
'VIE': {
|
|
927
|
+
'prefix_unary_operators': {
|
|
928
|
+
'căn bậc hai': 'sqrt',
|
|
929
|
+
'căn': 'sqrt'
|
|
930
|
+
},
|
|
931
|
+
'postfix_unary_operators': {
|
|
932
|
+
'bình phương': '^ 2',
|
|
933
|
+
'lập phương': '^ 3'
|
|
934
|
+
},
|
|
935
|
+
'binary_operators': {
|
|
936
|
+
'cộng': '+',
|
|
937
|
+
'thêm': '+',
|
|
938
|
+
'chia': '/',
|
|
939
|
+
'chia cho': '/',
|
|
940
|
+
'trừ': '-',
|
|
941
|
+
'bớt': '-',
|
|
942
|
+
'nhân': '*',
|
|
943
|
+
'lũy thừa': '^'
|
|
944
|
+
},
|
|
945
|
+
'numbers': {
|
|
946
|
+
'không': 0,
|
|
947
|
+
'một': 1, 'mốt': 1,
|
|
948
|
+
'hai': 2,
|
|
949
|
+
'ba': 3,
|
|
950
|
+
'bốn': 4, 'tư': 4,
|
|
951
|
+
'năm': 5, 'lăm': 5,
|
|
952
|
+
'sáu': 6,
|
|
953
|
+
'bảy': 7, 'bẩy': 7,
|
|
954
|
+
'tám': 8,
|
|
955
|
+
'chín': 9,
|
|
956
|
+
'mười': 10,
|
|
957
|
+
'mười một': 11,
|
|
958
|
+
'mười hai': 12,
|
|
959
|
+
'mười ba': 13,
|
|
960
|
+
'mười bốn': 14,
|
|
961
|
+
'mười lăm': 15,
|
|
962
|
+
'mười sáu': 16,
|
|
963
|
+
'mười bảy': 17,
|
|
964
|
+
'mười tám': 18,
|
|
965
|
+
'mười chín': 19,
|
|
966
|
+
'hai mươi': 20,
|
|
967
|
+
'ba mươi': 30,
|
|
968
|
+
'bốn mươi': 40,
|
|
969
|
+
'năm mươi': 50,
|
|
970
|
+
'sáu mươi': 60,
|
|
971
|
+
'bảy mươi': 70,
|
|
972
|
+
'tám mươi': 80,
|
|
973
|
+
'chín mươi': 90
|
|
974
|
+
},
|
|
975
|
+
'scales': {
|
|
976
|
+
'trăm': 100,
|
|
977
|
+
'nghìn': 1000, 'ngàn': 1000,
|
|
978
|
+
'triệu': 1000000,
|
|
979
|
+
'tỷ': 1000000000,
|
|
980
|
+
'nghìn tỷ': 1000000000000
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
'HIN': {
|
|
984
|
+
'prefix_unary_operators': {
|
|
985
|
+
'वर्गमूल': 'sqrt',
|
|
986
|
+
'ऋणात्मक': 'neg'
|
|
987
|
+
},
|
|
988
|
+
'postfix_unary_operators': {
|
|
989
|
+
'वर्ग': '^ 2',
|
|
990
|
+
'घन': '^ 3'
|
|
991
|
+
},
|
|
992
|
+
'binary_operators': {
|
|
993
|
+
'जोड़': '+',
|
|
994
|
+
'प्लस': '+',
|
|
995
|
+
'भाग': '/',
|
|
996
|
+
'विभाजित': '/',
|
|
997
|
+
'घटा': '-',
|
|
998
|
+
'माइनस': '-',
|
|
999
|
+
'गुणा': '*',
|
|
1000
|
+
'घात': '^'
|
|
1001
|
+
},
|
|
1002
|
+
'numbers': {
|
|
1003
|
+
'शून्य': 0,
|
|
1004
|
+
'एक': 1,
|
|
1005
|
+
'दो': 2,
|
|
1006
|
+
'तीन': 3,
|
|
1007
|
+
'चार': 4,
|
|
1008
|
+
'पाँच': 5, 'पांच': 5,
|
|
1009
|
+
'छह': 6, 'छः': 6,
|
|
1010
|
+
'सात': 7,
|
|
1011
|
+
'आठ': 8,
|
|
1012
|
+
'नौ': 9,
|
|
1013
|
+
'दस': 10,
|
|
1014
|
+
'ग्यारह': 11,
|
|
1015
|
+
'बारह': 12,
|
|
1016
|
+
'तेरह': 13,
|
|
1017
|
+
'चौदह': 14,
|
|
1018
|
+
'पंद्रह': 15,
|
|
1019
|
+
'सोलह': 16,
|
|
1020
|
+
'सत्रह': 17,
|
|
1021
|
+
'अठारह': 18,
|
|
1022
|
+
'उन्नीस': 19,
|
|
1023
|
+
'बीस': 20,
|
|
1024
|
+
'तीस': 30,
|
|
1025
|
+
'चालीस': 40,
|
|
1026
|
+
'पचास': 50,
|
|
1027
|
+
'साठ': 60,
|
|
1028
|
+
'सत्तर': 70,
|
|
1029
|
+
'अस्सी': 80,
|
|
1030
|
+
'नब्बे': 90
|
|
1031
|
+
},
|
|
1032
|
+
'scales': {
|
|
1033
|
+
'सौ': 100,
|
|
1034
|
+
'हजार': 1000,
|
|
1035
|
+
'लाख': 100000,
|
|
1036
|
+
'दस लाख': 1000000,
|
|
1037
|
+
'करोड़': 10000000,
|
|
1038
|
+
'अरब': 1000000000,
|
|
1039
|
+
'खरब': 100000000000
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
'ARA': {
|
|
1043
|
+
'prefix_unary_operators': {
|
|
1044
|
+
'الجذر التربيعي': 'sqrt',
|
|
1045
|
+
'جذر': 'sqrt',
|
|
1046
|
+
'سالب': 'neg'
|
|
1047
|
+
},
|
|
1048
|
+
'postfix_unary_operators': {
|
|
1049
|
+
'تربيع': '^ 2',
|
|
1050
|
+
'مكعب': '^ 3',
|
|
1051
|
+
'مربع': '^ 2'
|
|
1052
|
+
},
|
|
1053
|
+
'binary_operators': {
|
|
1054
|
+
'زائد': '+',
|
|
1055
|
+
'جمع': '+',
|
|
1056
|
+
'مقسوم على': '/',
|
|
1057
|
+
'قسمة': '/',
|
|
1058
|
+
'ناقص': '-',
|
|
1059
|
+
'طرح': '-',
|
|
1060
|
+
'ضرب': '*',
|
|
1061
|
+
'في': '*',
|
|
1062
|
+
'أس': '^',
|
|
1063
|
+
'قوة': '^'
|
|
1064
|
+
},
|
|
1065
|
+
'numbers': {
|
|
1066
|
+
'صفر': 0,
|
|
1067
|
+
'واحد': 1,
|
|
1068
|
+
'اثنان': 2, 'اثنين': 2,
|
|
1069
|
+
'ثلاثة': 3,
|
|
1070
|
+
'أربعة': 4,
|
|
1071
|
+
'خمسة': 5,
|
|
1072
|
+
'ستة': 6,
|
|
1073
|
+
'سبعة': 7,
|
|
1074
|
+
'ثمانية': 8,
|
|
1075
|
+
'تسعة': 9,
|
|
1076
|
+
'عشرة': 10,
|
|
1077
|
+
'أحد عشر': 11,
|
|
1078
|
+
'اثنا عشر': 12,
|
|
1079
|
+
'ثلاثة عشر': 13,
|
|
1080
|
+
'أربعة عشر': 14,
|
|
1081
|
+
'خمسة عشر': 15,
|
|
1082
|
+
'ستة عشر': 16,
|
|
1083
|
+
'سبعة عشر': 17,
|
|
1084
|
+
'ثمانية عشر': 18,
|
|
1085
|
+
'تسعة عشر': 19,
|
|
1086
|
+
'عشرون': 20,
|
|
1087
|
+
'ثلاثون': 30,
|
|
1088
|
+
'أربعون': 40,
|
|
1089
|
+
'خمسون': 50,
|
|
1090
|
+
'ستون': 60,
|
|
1091
|
+
'سبعون': 70,
|
|
1092
|
+
'ثمانون': 80,
|
|
1093
|
+
'تسعون': 90
|
|
1094
|
+
},
|
|
1095
|
+
'scales': {
|
|
1096
|
+
'مئة': 100, 'مائة': 100,
|
|
1097
|
+
'ألف': 1000,
|
|
1098
|
+
'مليون': 1000000,
|
|
1099
|
+
'مليار': 1000000000,
|
|
1100
|
+
'تريليون': 1000000000000
|
|
1101
|
+
}
|
|
1102
|
+
},
|
|
1103
|
+
'HEB': {
|
|
1104
|
+
'prefix_unary_operators': {
|
|
1105
|
+
'שורש ריבועי': 'sqrt',
|
|
1106
|
+
'שורש': 'sqrt',
|
|
1107
|
+
'שלילי': 'neg'
|
|
1108
|
+
},
|
|
1109
|
+
'postfix_unary_operators': {
|
|
1110
|
+
'בריבוע': '^ 2',
|
|
1111
|
+
'בחזקת שלוש': '^ 3',
|
|
1112
|
+
'בשלישית': '^ 3'
|
|
1113
|
+
},
|
|
1114
|
+
'binary_operators': {
|
|
1115
|
+
'פלוס': '+',
|
|
1116
|
+
'ועוד': '+',
|
|
1117
|
+
'חלקי': '/',
|
|
1118
|
+
'חילוק': '/',
|
|
1119
|
+
'מינוס': '-',
|
|
1120
|
+
'פחות': '-',
|
|
1121
|
+
'כפול': '*',
|
|
1122
|
+
'פעמים': '*',
|
|
1123
|
+
'בחזקת': '^',
|
|
1124
|
+
'חזקה': '^'
|
|
1125
|
+
},
|
|
1126
|
+
'numbers': {
|
|
1127
|
+
'אפס': 0,
|
|
1128
|
+
'אחד': 1, 'אחת': 1,
|
|
1129
|
+
'שניים': 2, 'שתיים': 2,
|
|
1130
|
+
'שלושה': 3, 'שלוש': 3,
|
|
1131
|
+
'אַרבעה': 4, 'ארבע': 4,
|
|
1132
|
+
'חמישה': 5, 'חמש': 5,
|
|
1133
|
+
'שישה': 6, 'שש': 6,
|
|
1134
|
+
'שבעה': 7, 'שבע': 7,
|
|
1135
|
+
'שמונה': 8, 'שמונה': 8,
|
|
1136
|
+
'תשעה': 9, 'תשע': 9,
|
|
1137
|
+
'עשרה': 10, 'עשר': 10,
|
|
1138
|
+
'אחד עשר': 11,
|
|
1139
|
+
'שנים עשר': 12,
|
|
1140
|
+
'שלושה עשר': 13,
|
|
1141
|
+
'ארבעה עשר': 14,
|
|
1142
|
+
'חמישה עשר': 15,
|
|
1143
|
+
'שישה עשר': 16,
|
|
1144
|
+
'שבעה עשר': 17,
|
|
1145
|
+
'שמונה עשר': 18,
|
|
1146
|
+
'תשעה עשר': 19,
|
|
1147
|
+
'עשרים': 20,
|
|
1148
|
+
'שלושים': 30,
|
|
1149
|
+
'ארבעים': 40,
|
|
1150
|
+
'חמישים': 50,
|
|
1151
|
+
'שישים': 60,
|
|
1152
|
+
'שבעים': 70,
|
|
1153
|
+
'שמונים': 80,
|
|
1154
|
+
'תשעים': 90
|
|
1155
|
+
},
|
|
1156
|
+
'scales': {
|
|
1157
|
+
'מאה': 100,
|
|
1158
|
+
'אלף': 1000,
|
|
1159
|
+
'מיליון': 1000000,
|
|
1160
|
+
'מיליארד': 1000000000,
|
|
1161
|
+
'טריליון': 1000000000000
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
'TUR': {
|
|
1165
|
+
'prefix_unary_operators': {
|
|
1166
|
+
'karekök': 'sqrt',
|
|
1167
|
+
'negatif': 'neg'
|
|
1168
|
+
},
|
|
1169
|
+
'postfix_unary_operators': {
|
|
1170
|
+
'kare': '^ 2',
|
|
1171
|
+
'küp': '^ 3'
|
|
1172
|
+
},
|
|
1173
|
+
'binary_operators': {
|
|
1174
|
+
'artı': '+',
|
|
1175
|
+
'toplama': '+',
|
|
1176
|
+
'bölü': '/',
|
|
1177
|
+
'bölme': '/',
|
|
1178
|
+
'eksi': '-',
|
|
1179
|
+
'çıkarma': '-',
|
|
1180
|
+
'çarpı': '*',
|
|
1181
|
+
'çarpma': '*',
|
|
1182
|
+
'üzeri': '^',
|
|
1183
|
+
'kuvvet': '^'
|
|
1184
|
+
},
|
|
1185
|
+
'numbers': {
|
|
1186
|
+
'sıfır': 0,
|
|
1187
|
+
'bir': 1,
|
|
1188
|
+
'iki': 2,
|
|
1189
|
+
'üç': 3,
|
|
1190
|
+
'dört': 4,
|
|
1191
|
+
'beş': 5,
|
|
1192
|
+
'altı': 6,
|
|
1193
|
+
'yedi': 7,
|
|
1194
|
+
'sekiz': 8,
|
|
1195
|
+
'dokuz': 9,
|
|
1196
|
+
'on': 10,
|
|
1197
|
+
'on bir': 11,
|
|
1198
|
+
'on iki': 12,
|
|
1199
|
+
'on üç': 13,
|
|
1200
|
+
'on dört': 14,
|
|
1201
|
+
'on beş': 15,
|
|
1202
|
+
'on altı': 16,
|
|
1203
|
+
'on yedi': 17,
|
|
1204
|
+
'on sekiz': 18,
|
|
1205
|
+
'on dokuz': 19,
|
|
1206
|
+
'yirmi': 20,
|
|
1207
|
+
'otuz': 30,
|
|
1208
|
+
'kırk': 40,
|
|
1209
|
+
'elli': 50,
|
|
1210
|
+
'altmış': 60,
|
|
1211
|
+
'yetmiş': 70,
|
|
1212
|
+
'seksen': 80,
|
|
1213
|
+
'doksan': 90
|
|
1214
|
+
},
|
|
1215
|
+
'scales': {
|
|
1216
|
+
'yüz': 100,
|
|
1217
|
+
'bin': 1000,
|
|
1218
|
+
'milyon': 1000000,
|
|
1219
|
+
'milyar': 1000000000,
|
|
1220
|
+
'trilyon': 1000000000000
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
'SWE': {
|
|
1224
|
+
'prefix_unary_operators': {
|
|
1225
|
+
'kvadratroten av': 'sqrt',
|
|
1226
|
+
'roten ur': 'sqrt'
|
|
1227
|
+
},
|
|
1228
|
+
'postfix_unary_operators': {
|
|
1229
|
+
'i kvadrat': '^ 2',
|
|
1230
|
+
'i kubik': '^ 3'
|
|
1231
|
+
},
|
|
1232
|
+
'binary_operators': {
|
|
1233
|
+
'plus': '+',
|
|
1234
|
+
'delat med': '/',
|
|
1235
|
+
'minus': '-',
|
|
1236
|
+
'gånger': '*',
|
|
1237
|
+
'multiplicerat med': '*',
|
|
1238
|
+
'upphöjt till': '^'
|
|
1239
|
+
},
|
|
1240
|
+
'numbers': {
|
|
1241
|
+
'noll': 0,
|
|
1242
|
+
'ett': 1, 'en': 1,
|
|
1243
|
+
'två': 2,
|
|
1244
|
+
'tre': 3,
|
|
1245
|
+
'fyra': 4,
|
|
1246
|
+
'fem': 5,
|
|
1247
|
+
'sex': 6,
|
|
1248
|
+
'sju': 7,
|
|
1249
|
+
'åtta': 8,
|
|
1250
|
+
'nio': 9,
|
|
1251
|
+
'tio': 10,
|
|
1252
|
+
'elva': 11,
|
|
1253
|
+
'tolv': 12,
|
|
1254
|
+
'tretton': 13,
|
|
1255
|
+
'fjorton': 14,
|
|
1256
|
+
'femton': 15,
|
|
1257
|
+
'sexton': 16,
|
|
1258
|
+
'sjutton': 17,
|
|
1259
|
+
'arton': 18,
|
|
1260
|
+
'nitton': 19,
|
|
1261
|
+
'tjugo': 20,
|
|
1262
|
+
'trettio': 30,
|
|
1263
|
+
'fyrtio': 40,
|
|
1264
|
+
'femtio': 50,
|
|
1265
|
+
'sextio': 60,
|
|
1266
|
+
'sjuttio': 70,
|
|
1267
|
+
'åttio': 80,
|
|
1268
|
+
'nittio': 90
|
|
1269
|
+
},
|
|
1270
|
+
'scales': {
|
|
1271
|
+
'hundra': 100,
|
|
1272
|
+
'tusen': 1000,
|
|
1273
|
+
'miljon': 1000000,
|
|
1274
|
+
'miljard': 1000000000,
|
|
1275
|
+
'biljon': 1000000000000
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
'NOR': {
|
|
1279
|
+
'prefix_unary_operators': {
|
|
1280
|
+
'kvadratrot av': 'sqrt',
|
|
1281
|
+
'rot av': 'sqrt'
|
|
1282
|
+
},
|
|
1283
|
+
'postfix_unary_operators': {
|
|
1284
|
+
'i andre': '^ 2',
|
|
1285
|
+
'i tredje': '^ 3'
|
|
1286
|
+
},
|
|
1287
|
+
'binary_operators': {
|
|
1288
|
+
'pluss': '+',
|
|
1289
|
+
'delt på': '/',
|
|
1290
|
+
'minus': '-',
|
|
1291
|
+
'ganger': '*',
|
|
1292
|
+
'multiplisert med': '*',
|
|
1293
|
+
'opphøyd i': '^'
|
|
1294
|
+
},
|
|
1295
|
+
'numbers': {
|
|
1296
|
+
'null': 0,
|
|
1297
|
+
'en': 1, 'ett': 1,
|
|
1298
|
+
'to': 2,
|
|
1299
|
+
'tre': 3,
|
|
1300
|
+
'fire': 4,
|
|
1301
|
+
'fem': 5,
|
|
1302
|
+
'seks': 6,
|
|
1303
|
+
'sju': 7, 'syv': 7,
|
|
1304
|
+
'åtte': 8,
|
|
1305
|
+
'ni': 9,
|
|
1306
|
+
'ti': 10,
|
|
1307
|
+
'elleve': 11,
|
|
1308
|
+
'tolv': 12,
|
|
1309
|
+
'tretten': 13,
|
|
1310
|
+
'fjorten': 14,
|
|
1311
|
+
'femten': 15,
|
|
1312
|
+
'seksten': 16,
|
|
1313
|
+
'sytten': 17,
|
|
1314
|
+
'atten': 18,
|
|
1315
|
+
'nitten': 19,
|
|
1316
|
+
'tjue': 20,
|
|
1317
|
+
'tretti': 30,
|
|
1318
|
+
'førti': 40,
|
|
1319
|
+
'femti': 50,
|
|
1320
|
+
'seksti': 60,
|
|
1321
|
+
'sytti': 70,
|
|
1322
|
+
'åtti': 80,
|
|
1323
|
+
'nitti': 90
|
|
1324
|
+
},
|
|
1325
|
+
'scales': {
|
|
1326
|
+
'hundre': 100,
|
|
1327
|
+
'tusen': 1000,
|
|
1328
|
+
'million': 1000000,
|
|
1329
|
+
'milliard': 1000000000,
|
|
1330
|
+
'billion': 1000000000000
|
|
1331
|
+
}
|
|
1332
|
+
},
|
|
1333
|
+
'DAN': {
|
|
1334
|
+
'prefix_unary_operators': {
|
|
1335
|
+
'kvadratrod af': 'sqrt',
|
|
1336
|
+
'rod af': 'sqrt'
|
|
1337
|
+
},
|
|
1338
|
+
'postfix_unary_operators': {
|
|
1339
|
+
'i anden': '^ 2',
|
|
1340
|
+
'i tredje': '^ 3'
|
|
1341
|
+
},
|
|
1342
|
+
'binary_operators': {
|
|
1343
|
+
'plus': '+',
|
|
1344
|
+
'divideret med': '/',
|
|
1345
|
+
'minus': '-',
|
|
1346
|
+
'gange': '*',
|
|
1347
|
+
'multipliceret med': '*',
|
|
1348
|
+
'opløftet i': '^'
|
|
1349
|
+
},
|
|
1350
|
+
'numbers': {
|
|
1351
|
+
'nul': 0,
|
|
1352
|
+
'en': 1, 'et': 1,
|
|
1353
|
+
'to': 2,
|
|
1354
|
+
'tre': 3,
|
|
1355
|
+
'fire': 4,
|
|
1356
|
+
'fem': 5,
|
|
1357
|
+
'seks': 6,
|
|
1358
|
+
'syv': 7,
|
|
1359
|
+
'otte': 8,
|
|
1360
|
+
'ni': 9,
|
|
1361
|
+
'ti': 10,
|
|
1362
|
+
'elleve': 11,
|
|
1363
|
+
'tolv': 12,
|
|
1364
|
+
'tretten': 13,
|
|
1365
|
+
'fjorten': 14,
|
|
1366
|
+
'femten': 15,
|
|
1367
|
+
'seksten': 16,
|
|
1368
|
+
'sytten': 17,
|
|
1369
|
+
'atten': 18,
|
|
1370
|
+
'nitten': 19,
|
|
1371
|
+
'tyve': 20,
|
|
1372
|
+
'tredive': 30,
|
|
1373
|
+
'fyrre': 40, 'fyrretyve': 40,
|
|
1374
|
+
'halvtreds': 50,
|
|
1375
|
+
'tres': 60,
|
|
1376
|
+
'halvfjerds': 70,
|
|
1377
|
+
'firs': 80,
|
|
1378
|
+
'halvfems': 90
|
|
1379
|
+
},
|
|
1380
|
+
'scales': {
|
|
1381
|
+
'hundrede': 100,
|
|
1382
|
+
'tusind': 1000,
|
|
1383
|
+
'million': 1000000,
|
|
1384
|
+
'milliard': 1000000000,
|
|
1385
|
+
'billion': 1000000000000
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
'FIN': {
|
|
1389
|
+
'prefix_unary_operators': {
|
|
1390
|
+
'neliöjuuri': 'sqrt',
|
|
1391
|
+
'juuri': 'sqrt'
|
|
1392
|
+
},
|
|
1393
|
+
'postfix_unary_operators': {
|
|
1394
|
+
'toiseen': '^ 2',
|
|
1395
|
+
'kolmanteen': '^ 3'
|
|
1396
|
+
},
|
|
1397
|
+
'binary_operators': {
|
|
1398
|
+
'plus': '+',
|
|
1399
|
+
'jaettuna': '/',
|
|
1400
|
+
'miinus': '-',
|
|
1401
|
+
'kertaa': '*',
|
|
1402
|
+
'kerrottuna': '*',
|
|
1403
|
+
'potenssiin': '^'
|
|
1404
|
+
},
|
|
1405
|
+
'numbers': {
|
|
1406
|
+
'nolla': 0,
|
|
1407
|
+
'yksi': 1,
|
|
1408
|
+
'kaksi': 2,
|
|
1409
|
+
'kolme': 3,
|
|
1410
|
+
'neljä': 4,
|
|
1411
|
+
'viisi': 5,
|
|
1412
|
+
'kuusi': 6,
|
|
1413
|
+
'seitsemän': 7,
|
|
1414
|
+
'kahdeksan': 8,
|
|
1415
|
+
'yhdeksän': 9,
|
|
1416
|
+
'kymmenen': 10,
|
|
1417
|
+
'yksitoista': 11,
|
|
1418
|
+
'kaksitoista': 12,
|
|
1419
|
+
'kolmetoista': 13,
|
|
1420
|
+
'neljätoista': 14,
|
|
1421
|
+
'viisitoista': 15,
|
|
1422
|
+
'kuusitoista': 16,
|
|
1423
|
+
'seitsemäntoista': 17,
|
|
1424
|
+
'kahdeksantoista': 18,
|
|
1425
|
+
'yhdeksäntoista': 19,
|
|
1426
|
+
'kaksikymmentä': 20,
|
|
1427
|
+
'kolmekymmentä': 30,
|
|
1428
|
+
'neljäkymmentä': 40,
|
|
1429
|
+
'viisikymmentä': 50,
|
|
1430
|
+
'kuusikymmentä': 60,
|
|
1431
|
+
'seitsemänkymmentä': 70,
|
|
1432
|
+
'kahdeksankymmentä': 80,
|
|
1433
|
+
'yhdeksänkymmentä': 90
|
|
1434
|
+
},
|
|
1435
|
+
'scales': {
|
|
1436
|
+
'sata': 100,
|
|
1437
|
+
'tuhat': 1000,
|
|
1438
|
+
'miljoona': 1000000,
|
|
1439
|
+
'miljardi': 1000000000,
|
|
1440
|
+
'biljoona': 1000000000000
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
'POL': {
|
|
1444
|
+
'prefix_unary_operators': {
|
|
1445
|
+
'pierwiastek kwadratowy z': 'sqrt',
|
|
1446
|
+
'pierwiastek z': 'sqrt'
|
|
1447
|
+
},
|
|
1448
|
+
'postfix_unary_operators': {
|
|
1449
|
+
'do kwadratu': '^ 2',
|
|
1450
|
+
'do sześcianu': '^ 3'
|
|
1451
|
+
},
|
|
1452
|
+
'binary_operators': {
|
|
1453
|
+
'plus': '+',
|
|
1454
|
+
'podzielone przez': '/',
|
|
1455
|
+
'dzielone przez': '/',
|
|
1456
|
+
'minus': '-',
|
|
1457
|
+
'razy': '*',
|
|
1458
|
+
'pomnożone przez': '*',
|
|
1459
|
+
'do potęgi': '^'
|
|
1460
|
+
},
|
|
1461
|
+
'numbers': {
|
|
1462
|
+
'zero': 0,
|
|
1463
|
+
'jeden': 1, 'jedna': 1,
|
|
1464
|
+
'dwa': 2, 'dwie': 2,
|
|
1465
|
+
'trzy': 3,
|
|
1466
|
+
'cztery': 4,
|
|
1467
|
+
'pięć': 5,
|
|
1468
|
+
'sześć': 6,
|
|
1469
|
+
'siedem': 7,
|
|
1470
|
+
'osiem': 8,
|
|
1471
|
+
'dziewięć': 9,
|
|
1472
|
+
'dziesięć': 10,
|
|
1473
|
+
'jedenaście': 11,
|
|
1474
|
+
'dwanaście': 12,
|
|
1475
|
+
'trzynaście': 13,
|
|
1476
|
+
'czternaście': 14,
|
|
1477
|
+
'piętnaście': 15,
|
|
1478
|
+
'szesnaście': 16,
|
|
1479
|
+
'siedemnaście': 17,
|
|
1480
|
+
'osiemnaście': 18,
|
|
1481
|
+
'dziewiętnaście': 19,
|
|
1482
|
+
'dwadzieścia': 20,
|
|
1483
|
+
'trzydzieści': 30,
|
|
1484
|
+
'czterdzieści': 40,
|
|
1485
|
+
'pięćdziesiąt': 50,
|
|
1486
|
+
'sześćdziesiąt': 60,
|
|
1487
|
+
'siedemdziesiąt': 70,
|
|
1488
|
+
'osiemdziesiąt': 80,
|
|
1489
|
+
'dziewięćdziesiąt': 90
|
|
1490
|
+
},
|
|
1491
|
+
'scales': {
|
|
1492
|
+
'sto': 100,
|
|
1493
|
+
'tysiąc': 1000,
|
|
1494
|
+
'milion': 1000000,
|
|
1495
|
+
'miliard': 1000000000,
|
|
1496
|
+
'bilion': 1000000000000
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
'CZE': {
|
|
1500
|
+
'prefix_unary_operators': {
|
|
1501
|
+
'druhá odmocnina': 'sqrt',
|
|
1502
|
+
'odmocnina': 'sqrt'
|
|
1503
|
+
},
|
|
1504
|
+
'postfix_unary_operators': {
|
|
1505
|
+
'na druhou': '^ 2',
|
|
1506
|
+
'na třetí': '^ 3'
|
|
1507
|
+
},
|
|
1508
|
+
'binary_operators': {
|
|
1509
|
+
'plus': '+',
|
|
1510
|
+
'děleno': '/',
|
|
1511
|
+
'minus': '-',
|
|
1512
|
+
'krát': '*',
|
|
1513
|
+
'násobeno': '*',
|
|
1514
|
+
'na': '^'
|
|
1515
|
+
},
|
|
1516
|
+
'numbers': {
|
|
1517
|
+
'nula': 0,
|
|
1518
|
+
'jeden': 1, 'jedna': 1, 'jedno': 1,
|
|
1519
|
+
'dva': 2, 'dvě': 2,
|
|
1520
|
+
'tři': 3,
|
|
1521
|
+
'čtyři': 4,
|
|
1522
|
+
'pět': 5,
|
|
1523
|
+
'šest': 6,
|
|
1524
|
+
'sedm': 7,
|
|
1525
|
+
'osm': 8,
|
|
1526
|
+
'devět': 9,
|
|
1527
|
+
'deset': 10,
|
|
1528
|
+
'jedenáct': 11,
|
|
1529
|
+
'dvanáct': 12,
|
|
1530
|
+
'třináct': 13,
|
|
1531
|
+
'čtrnáct': 14,
|
|
1532
|
+
'patnáct': 15,
|
|
1533
|
+
'šestnáct': 16,
|
|
1534
|
+
'sedmnáct': 17,
|
|
1535
|
+
'osmnáct': 18,
|
|
1536
|
+
'devatenáct': 19,
|
|
1537
|
+
'dvacet': 20,
|
|
1538
|
+
'třicet': 30,
|
|
1539
|
+
'čtyřicet': 40,
|
|
1540
|
+
'padesát': 50,
|
|
1541
|
+
'šedesát': 60,
|
|
1542
|
+
'sedmdesát': 70,
|
|
1543
|
+
'osmdesát': 80,
|
|
1544
|
+
'devadesát': 90
|
|
1545
|
+
},
|
|
1546
|
+
'scales': {
|
|
1547
|
+
'sto': 100,
|
|
1548
|
+
'tisíc': 1000,
|
|
1549
|
+
'milion': 1000000,
|
|
1550
|
+
'miliarda': 1000000000,
|
|
1551
|
+
'bilion': 1000000000000
|
|
1552
|
+
}
|
|
1553
|
+
},
|
|
1554
|
+
'HUN': {
|
|
1555
|
+
'prefix_unary_operators': {
|
|
1556
|
+
'négyzetgyök': 'sqrt',
|
|
1557
|
+
'gyök': 'sqrt'
|
|
1558
|
+
},
|
|
1559
|
+
'postfix_unary_operators': {
|
|
1560
|
+
'négyzet': '^ 2',
|
|
1561
|
+
'köb': '^ 3'
|
|
1562
|
+
},
|
|
1563
|
+
'binary_operators': {
|
|
1564
|
+
'plusz': '+',
|
|
1565
|
+
'osztva': '/',
|
|
1566
|
+
'mínusz': '-',
|
|
1567
|
+
'szorozva': '*',
|
|
1568
|
+
'szor': '*',
|
|
1569
|
+
'hatványon': '^'
|
|
1570
|
+
},
|
|
1571
|
+
'numbers': {
|
|
1572
|
+
'nulla': 0,
|
|
1573
|
+
'egy': 1,
|
|
1574
|
+
'kettő': 2, 'két': 2,
|
|
1575
|
+
'három': 3,
|
|
1576
|
+
'négy': 4,
|
|
1577
|
+
'öt': 5,
|
|
1578
|
+
'hat': 6,
|
|
1579
|
+
'hét': 7,
|
|
1580
|
+
'nyolc': 8,
|
|
1581
|
+
'kilenc': 9,
|
|
1582
|
+
'tíz': 10,
|
|
1583
|
+
'tizenegy': 11,
|
|
1584
|
+
'tizenkettő': 12,
|
|
1585
|
+
'tizenhárom': 13,
|
|
1586
|
+
'tizennégy': 14,
|
|
1587
|
+
'tizenöt': 15,
|
|
1588
|
+
'tizenhat': 16,
|
|
1589
|
+
'tizenhét': 17,
|
|
1590
|
+
'tizennyolc': 18,
|
|
1591
|
+
'tizenkilenc': 19,
|
|
1592
|
+
'húsz': 20,
|
|
1593
|
+
'harminc': 30,
|
|
1594
|
+
'negyven': 40,
|
|
1595
|
+
'ötven': 50,
|
|
1596
|
+
'hatvan': 60,
|
|
1597
|
+
'hetven': 70,
|
|
1598
|
+
'nyolcvan': 80,
|
|
1599
|
+
'kilencven': 90
|
|
1600
|
+
},
|
|
1601
|
+
'scales': {
|
|
1602
|
+
'száz': 100,
|
|
1603
|
+
'ezer': 1000,
|
|
1604
|
+
'millió': 1000000,
|
|
1605
|
+
'milliárd': 1000000000,
|
|
1606
|
+
'billió': 1000000000000
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1609
|
+
'RON': {
|
|
1610
|
+
'prefix_unary_operators': {
|
|
1611
|
+
'radical din': 'sqrt',
|
|
1612
|
+
'rădăcină pătrată din': 'sqrt'
|
|
1613
|
+
},
|
|
1614
|
+
'postfix_unary_operators': {
|
|
1615
|
+
'la pătrat': '^ 2',
|
|
1616
|
+
'la cub': '^ 3'
|
|
1617
|
+
},
|
|
1618
|
+
'binary_operators': {
|
|
1619
|
+
'plus': '+',
|
|
1620
|
+
'împărțit la': '/',
|
|
1621
|
+
'minus': '-',
|
|
1622
|
+
'înmulțit cu': '*',
|
|
1623
|
+
'ori': '*',
|
|
1624
|
+
'la puterea': '^'
|
|
1625
|
+
},
|
|
1626
|
+
'numbers': {
|
|
1627
|
+
'zero': 0,
|
|
1628
|
+
'unu': 1, 'una': 1,
|
|
1629
|
+
'doi': 2, 'două': 2,
|
|
1630
|
+
'trei': 3,
|
|
1631
|
+
'patru': 4,
|
|
1632
|
+
'cinci': 5,
|
|
1633
|
+
'șase': 6,
|
|
1634
|
+
'șapte': 7,
|
|
1635
|
+
'opt': 8,
|
|
1636
|
+
'nouă': 9,
|
|
1637
|
+
'zece': 10,
|
|
1638
|
+
'unsprezece': 11,
|
|
1639
|
+
'doisprezece': 12,
|
|
1640
|
+
'treisprezece': 13,
|
|
1641
|
+
'paisprezece': 14,
|
|
1642
|
+
'cincisprezece': 15,
|
|
1643
|
+
'șaisprezece': 16,
|
|
1644
|
+
'șaptesprezece': 17,
|
|
1645
|
+
'optsprezece': 18,
|
|
1646
|
+
'nouăsprezece': 19,
|
|
1647
|
+
'douăzeci': 20,
|
|
1648
|
+
'treizeci': 30,
|
|
1649
|
+
'patruzeci': 40,
|
|
1650
|
+
'cincizeci': 50,
|
|
1651
|
+
'șaizeci': 60,
|
|
1652
|
+
'șaptezeci': 70,
|
|
1653
|
+
'optzeci': 80,
|
|
1654
|
+
'nouăzeci': 90
|
|
1655
|
+
},
|
|
1656
|
+
'scales': {
|
|
1657
|
+
'sută': 100,
|
|
1658
|
+
'mie': 1000,
|
|
1659
|
+
'milion': 1000000,
|
|
1660
|
+
'miliard': 1000000000,
|
|
1661
|
+
'trilion': 1000000000000
|
|
1662
|
+
}
|
|
780
1663
|
}
|
|
781
1664
|
}
|
|
782
1665
|
|
|
@@ -786,6 +1669,7 @@ LANGUAGE_CODES = list(MATH_WORDS.keys())
|
|
|
786
1669
|
|
|
787
1670
|
CONSTANTS = {
|
|
788
1671
|
'pi': 3.141693,
|
|
1672
|
+
'π': 3.141693,
|
|
789
1673
|
'e': 2.718281
|
|
790
1674
|
}
|
|
791
1675
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
mathparse/__init__.py,sha256=ZBWkFcEyYlzjaH0qWeBIOxXUn9vIJOxbdpHpfXMtFTI,110
|
|
2
|
+
mathparse/mathparse.py,sha256=JNB33gr1dk_2pG_ftkcCrBBaoZHzWX_fQ-XLxStOjGw,29337
|
|
3
|
+
mathparse/mathwords.py,sha256=0SA6rG4X7lSRkhaHr-oIC1g6HFKCFJysqeyLASbALLo,48306
|
|
4
|
+
mathparse-0.2.5.dist-info/licenses/LICENSE,sha256=_buf4D_BxjT3x8SBhP0Rh966qP3zpbButcLI4bPq_TY,1068
|
|
5
|
+
mathparse-0.2.5.dist-info/METADATA,sha256=vy9LB508HGmsaNN6Ri62ncBacsVlaqLsRDO4538vn6c,2325
|
|
6
|
+
mathparse-0.2.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
+
mathparse-0.2.5.dist-info/top_level.txt,sha256=rAQj3bfKyZhbFL6WxVLRCqnvwQPI2ZCc_FNrwx6Hlmc,10
|
|
8
|
+
mathparse-0.2.5.dist-info/RECORD,,
|
mathparse-0.2.3.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
mathparse/__init__.py,sha256=ALL73dYTKpEfBaZKrAYR148e8QXbrlFYlYDgjF8ePoY,110
|
|
2
|
-
mathparse/mathparse.py,sha256=Qt2hP6IkPtPpZRlH5fMiS9zKEnoR2TETRcNd3lm8e-c,24122
|
|
3
|
-
mathparse/mathwords.py,sha256=JRzDXPVM7K8VMjzolIpNUGU7AtLiT7WLRsfo6KDT_OU,23516
|
|
4
|
-
mathparse-0.2.3.dist-info/licenses/LICENSE,sha256=_buf4D_BxjT3x8SBhP0Rh966qP3zpbButcLI4bPq_TY,1068
|
|
5
|
-
mathparse-0.2.3.dist-info/METADATA,sha256=i8hRxYIn38xsDhHdmW6ih35AZ5yzfDMoQCs7Iz3VIGc,2325
|
|
6
|
-
mathparse-0.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
7
|
-
mathparse-0.2.3.dist-info/top_level.txt,sha256=rAQj3bfKyZhbFL6WxVLRCqnvwQPI2ZCc_FNrwx6Hlmc,10
|
|
8
|
-
mathparse-0.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|