Check if a written or digits number is ordinal or cardinal