(subfam)
| 597 | result = [] |
| 598 | |
| 599 | def _weight_from_subfam(subfam): |
| 600 | subfam = subfam.replace(" ", "") |
| 601 | for regex, weight in _weight_regexes: |
| 602 | if re.search(regex, subfam, re.I): |
| 603 | return weight |
| 604 | return 400 # "Regular" or unrecognised |
| 605 | |
| 606 | def _try_add(name, subfam): |
| 607 | name = name.strip() |