DeepL Extension Write published as beta

DeepL has released a new service called "write" that aims to improve spelling and grammar with AI.

DeepL is known to many of us as a translation tool for a variety of languages. Now a new, equally powerful AI tool called Write has been released. Write analyses texts and, if necessary, rewrites them so that they are easier to read. In the process, the AI corrects spelling and grammar.

In some cases, the AI suggests alternative formulations for certain sentences. In this way, it is possible to have the text formulated according to one's own ideas.

The result is impressive! Try it out for yourself.

DeepL

DeepL was founded in 2014 and is headquartered in Cologne, Germany. The service was introduced to the public in August 2017 and currently supports more than ten languages, including German, English, French, Spanish, Italian, Polish, Dutch, Russian, Chinese and Japanese.

DeepL also offers an API so that developers can integrate the translation functions into their own applications. In addition, DeepL also offers a free online interface that allows users to translate their texts in real time.

Google Translate vs DeepL

The main difference between DeepL and Google Translate is the technology used. Google Translate uses a technology called "statistical machine translation" (SMT), which is based on existing translations and tries to find the most common translations for a word or phrase.

DeepL uses a new type of technology called "neural machine translation" (NMT), which makes it possible to translate texts automatically and in real time into another language without having to use a template or reference translation. This technology makes it possible to better understand and reproduce the grammar, vocabulary and context of a language, resulting in higher translation quality.

DeepL PHP API

DeepL offers a PHP API that allows PHP developers to integrate the translation features of DeepL into their PHP applications. This API enables developers to translate texts automatically and in real time into different languages without having to use a template or reference translation.

To use the PHP API from DeepL, developers must first obtain an API key from DeepL. This key is used to authenticate requests to the API. Once you have obtained the key, you can use the API's translation functions in your PHP code. There are also some open source PHP libraries that make it easier for developers to integrate the API into their applications.

There is a cost associated with using the API, depending on the number of requests to the API and the language pairs used.

Example of using the PHP API from DeepL to translate an English text into German:

<?php

// Create a new cURL session
$ch = curl_init();

// Set the URL and other options for the request
curl_setopt($ch, CURLOPT_URL, "https://api.deepl.com/v2/translate");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "auth_key=YOUR_AUTH_KEY&text=Hello+world!&target_lang=DE");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

// Execute the request and save the response
$response = curl_exec($ch);

// Schließe die cURL-Sitzung
curl_close($ch);

// Decode the response as a JSON object
$response_obj = json_decode($response);

// Translation output
echo $response_obj->translations[0]->text;

?>

In this example, the cURL function is used to send an HTTP POST request to the DeepL API. In the POST data, the API key, the text to be translated and the target of the translation (German) are passed.

The API responds with a JSON object containing the translation. In this example, the JSON object is decoded into a PHP object and the translation is output, which is located in the field "text".

Links to article
Author

Ratings

There are no comments available yet.

Here you can write a comment


Please enter at least 10 characters.
Loading... Please wait.
* Pflichtangabe

Related topics

Why texting with artificial intelligence is really good

Artificial intelligence is about to take over the world. The biggest companies are developing systems that can write a text for you. And they do it very well. ...

admin

Autor : admin
Category: SEO & Online-Marketing

Wir entwickeln seit über 20 Jahren Web & E-Commerce Anwendungen
Egelsbach, Deutschland

Publish a press release

Share your news and information

Share your news and information with others

You want to inform other users about an interesting IT topic, then sign up now and share it with our PHP community

learn more

Publish a press release