powered by
translates the penalty from a numeric value to the character or from the character to the numeric value. The numeric value is used by the C++ backend.
.penaltyTypes(penalty)
number corresponding to one of the penalties
either a number or the name of the penalty