public function transform($w)
    {
        $class = $this->cls->classify(
            $this->classes,
            new RawDocument($w)
        );

        foreach ($this->transforms[$class] as $t) {
            $w = $t->transform($w);
        }

        return $w;
    }