Skip to content

Commit 6efec7a

Browse files
committed
Adjust readme
1 parent 44adca2 commit 6efec7a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ use \DetectLanguage\DetectLanguage;
4545
DetectLanguage::setApiKey("YOUR API KEY");
4646
```
4747

48-
### Language detection
48+
### Detect language
4949

5050
```php
5151
$results = DetectLanguage::detect("Dolce far niente");
@@ -65,9 +65,9 @@ Array
6565
)
6666
```
6767

68-
### Simple language detection
68+
### Detect single code
6969

70-
If you need just a language code you can use `simpleDetect`. It returns just the language code.
70+
If you need just a language code you can use `detectCode`. It returns just the language code.
7171

7272
```php
7373
$languageCode = DetectLanguage::detectCode("Dolce far niente");
@@ -83,7 +83,7 @@ $languageCode = DetectLanguage::detectCode("Dolce far niente");
8383

8484
It is possible to detect language of several texts with one request.
8585
This method is faster than doing one request per text.
86-
To use batch detection just pass array of texts to `detect` method.
86+
To use batch detection just pass array of texts to `detectBatch` method.
8787

8888
```php
8989
$results = DetectLanguage::detectBatch(array("Dolce far niente", "Hello world"));
@@ -141,7 +141,7 @@ stdClass Object
141141
)
142142
```
143143

144-
### Get supported languages
144+
### Get list of supported languages
145145

146146
```php
147147
$results = DetectLanguage::getLanguages();

0 commit comments

Comments
 (0)