File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ use \DetectLanguage\DetectLanguage;
45
45
DetectLanguage::setApiKey("YOUR API KEY");
46
46
```
47
47
48
- ### Language detection
48
+ ### Detect language
49
49
50
50
``` php
51
51
$results = DetectLanguage::detect("Dolce far niente");
65
65
)
66
66
```
67
67
68
- ### Simple language detection
68
+ ### Detect single code
69
69
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.
71
71
72
72
``` php
73
73
$languageCode = DetectLanguage::detectCode("Dolce far niente");
@@ -83,7 +83,7 @@ $languageCode = DetectLanguage::detectCode("Dolce far niente");
83
83
84
84
It is possible to detect language of several texts with one request.
85
85
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.
87
87
88
88
``` php
89
89
$results = DetectLanguage::detectBatch(array("Dolce far niente", "Hello world"));
@@ -141,7 +141,7 @@ stdClass Object
141
141
)
142
142
```
143
143
144
- ### Get supported languages
144
+ ### Get list of supported languages
145
145
146
146
``` php
147
147
$results = DetectLanguage::getLanguages();
You can’t perform that action at this time.
0 commit comments