-def normalize_punc(string):
- string = unicode(string.strip(u",.'"))
- string = filter(lambda u: u.isnumeric() or u in u",.'", string)
+def normalize_number(string):
+ """Normalize punctuation in a number.
+
+ This function attempts to guess which characters in a number
+ represent grouping separators and which represent decimal
+ points. It returns a string that is valid to pass to Python's
+ float() routine (potentially, NaN, if nothing like a number is
+ found).
+
+ """
+
+ string = unicode(string)
+ string = filter(lambda u: u.isnumeric() or u in KEEP_IN_NUMBERS, string)
+ string = string.strip(KEEP_IN_NUMBERS)
+