I started getting "ValueError: tuple.index(x): x not in tuple" here: 'if score>best_score_entry or score==best_score_entry and (not best_type_entry or type_order.index(Type)<type_order.index(best_type_entry)):' (Line 98)
It looks like out of the roughly ~13k entries in the title DB, there's about 100 with type='kana'.
I started getting "ValueError: tuple.index(x): x not in tuple" here: 'if score>best_score_entry or score==best_score_entry and (not best_type_entry or type_order.index(Type)<type_order.index(best_type_entry)):' (Line 98)
It looks like out of the roughly ~13k entries in the title DB, there's about 100 with type='kana'.