public function calculateNumeral($numeral)
    {
        // Use custom enumerator
        if ($this->enumerator) {
            return $this->enumerator($numeral);
        }

        return ($numeral > 1 or $numeral < -1 or $numeral == 0) ? 1 : 0;
    }
public function calculateNumeral($numeral)
    {
        // Use custom enumerator
        if ($this->enumerator) {
            return $this->enumerator($numeral);
        }

        return ($numeral > 1 or $numeral < -1 or $numeral == 0) ? 1 : 0;
    }
public function calculateNumeral ( $ numeral ) { // Use custom enumerator if ( $ this -> enumerator ) { return $ this -> enumerator ( $ numeral ) ; } return ( $ numeral > 1 or $ numeral < - 1 or $ numeral == 0 ) ? 1 : 0 ; }
Determines which replacement to use for plurals.

@param integer $numeral

@return integer
Determines which replacement to use for plurals .