def fix_judgment(judgment):
    """Make sure judgment is -1, 0, 1, or None."""
    try:
        judgment = float(judgment)
    except TypeError:
        return None
    if judgment > 0:
        return 1
    elif judgment < 0:
        return -1
    else:
        return 0
