src/PokeCalculator.php
public function translate($expression, $inputFormat = self::INPUT_POKENUMBER)
    {
        $inputSystem = $this->numberSystem;
        $outputSystem = new NumberSystem();

        if ($inputFormat === self::INPUT_DECIMAL) {
            $inputSystem = new NumberSystem();
            $outputSystem = $this->numberSystem;
        }

        $expression = new Expression($expression, $inputSystem);

        return $this->converter->convert($expression, $outputSystem)->value();
    }
public function translate($expression, $inputFormat = self::INPUT_POKENUMBER)
    {
        $inputSystem = $this->numberSystem;
        $outputSystem = new NumberSystem();

        if ($inputFormat === self::INPUT_DECIMAL) {
            $inputSystem = new NumberSystem();
            $outputSystem = $this->numberSystem;
        }

        $expression = new Expression($expression, $inputSystem);

        return $this->converter->convert($expression, $outputSystem)->value();
    }
Translate all PokeNumbers found inside of an expression to decimal numbers.
Note: Only expression that use spaces to seperate strings can be parsed
This means: "snorlax+jigglypuff" will NOT be recognised whereas "snorlax + jigglypuff" will be parseable.

@param string $expression

@return string