protected function prepareCheckTextsResponse(ResponseContextAbstract $context): SpellCheckResponse
    {
        $response = new SpellCheckResponse();

        $corrections = [];

        foreach ($context->getArray() as $wordCorrections) {
            $corrected = [];

            foreach ($wordCorrections as $wordCorrection) {
                if (!empty($wordCorrection['s']) && !empty($wordCorrection['word'])) {
                    $corrected[$wordCorrection['word']] = (array)$wordCorrection['s'];
                }
            }

            $corrections[] = $corrected;
        }

        $response->setCorrections($corrections);

        return $response;
    }