def apnumber(value):
    try:
        value = int(value)
    except ValueError:
        return value
    if not 0 < value < 10:
        return value
    return (_('one'), _('two'), _('three'), _('four'), _('five'), _('six'), _('seven'), _('eight'), _('nine'))[value-1]
Take heroic measures to make ``poly`` compatible with ``CRootOf``.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/humanize/templatetags/humanize.py/apnumber--crossover with--dataset/ETHPy150Open sympy/sympy/sympy/polys/rootoftools.py/ComplexRootOf._preprocess_roots