You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/Bing-Spell-Check/quickstarts/csharp.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,7 @@ Although this application is written in C#, the API is a RESTful Web service com
47
47
usingNewtonsoft.Json;
48
48
```
49
49
50
-
2. Createvariablesfor the API endpoint, your subscription key, and the text to be spell checked. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpointdisplayedintheAzureportalfor your resource.
50
+
1. Createvariablesfor the API endpoint, your subscription key, and the text to be spell checked. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpointdisplayedintheAzureportalfor your resource.
51
51
52
52
```csharp
53
53
namespace SpellCheckSample
@@ -63,11 +63,11 @@ Although this application is written in C#, the API is a RESTful Web service com
63
63
}
64
64
```
65
65
66
-
3. Createastringfor your search parameters:
66
+
1. Createastringfor your search parameters:
67
67
68
-
a. Assign your market code to the `mkt` parameter with the `=` operator. The market code is the code of the country/region you make the request from.
68
+
1. Assign your market code to the `mkt` parameter with the `=` operator. The market code is the code of the country/region you make the request from.
69
69
70
-
b. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammarerrors) or `spell` (catchesmostspellingerrors, butnotasmanygrammarerrors).
70
+
1. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammarerrors) or `spell` (catchesmostspellingerrors, butnotasmanygrammarerrors).
71
71
72
72
```csharp
73
73
staticstringparams_="mkt=en-US&mode=proof";
@@ -88,13 +88,13 @@ Although this application is written in C#, the API is a RESTful Web service com
88
88
}
89
89
```
90
90
91
-
2. CreatetheURIfor your request by appending your host, path, and parameters.
91
+
1. CreatetheURIfor your request by appending your host, path, and parameters.
Copy file name to clipboardExpand all lines: articles/cognitive-services/Bing-Spell-Check/quickstarts/java.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ Although this application is written in Java, the API is a RESTful web service c
38
38
importjavax.net.ssl.HttpsURLConnection;
39
39
```
40
40
41
-
2.Create variables for the API endpoint's host, path, and your subscription key. Then, create variables for your market, the text you want to spell check, and a string for the spell check mode. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
41
+
1.Create variables for the API endpoint's host, path, and your subscription key. Then, create variables for your market, the text you want to spell check, and a string for the spell check mode. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
@@ -55,9 +55,9 @@ Although this application is written in Java, the API is a RESTful web service c
55
55
56
56
1. Create a function called `check()` to create and send the API request. Within this function, add the code specified in the next steps. Create a string for the request parameters:
57
57
58
-
a. Assign your market code to the `mkt` parameter with the `=` operator.
58
+
1. Assign your market code to the `mkt` parameter with the `=` operator.
59
59
60
-
b. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode.
60
+
1. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode.
61
61
62
62
```java
63
63
public static void check () throws Exception {
@@ -66,14 +66,14 @@ Although this application is written in Java, the API is a RESTful web service c
66
66
}
67
67
```
68
68
69
-
2. Create a URL by combining the endpoint host, path, and parameters string. Create a new `HttpsURLConnection` object.
69
+
1. Create a URL by combining the endpoint host, path, and parameters string. Create a new `HttpsURLConnection` object.
3. Open a connection to the URL. Set the request method to `POST` and add your request parameters. Be sure to add your subscription key to the `Ocp-Apim-Subscription-Key` header.
76
+
1. Open a connection to the URL. Set the request method to `POST` and add your request parameters. Be sure to add your subscription key to the `Ocp-Apim-Subscription-Key` header.
77
77
78
78
```java
79
79
connection.setRequestMethod("POST");
@@ -82,7 +82,7 @@ Although this application is written in Java, the API is a RESTful web service c
82
82
connection.setDoOutput(true);
83
83
```
84
84
85
-
4. Create a new `DataOutputStream` object and send the request to the API.
85
+
1. Create a new `DataOutputStream` object and send the request to the API.
86
86
87
87
```java
88
88
DataOutputStream wr = new DataOutputStream(connection.getOutputStream());
@@ -141,7 +141,7 @@ Build and run your project. If you're using the command line, use the following
Copy file name to clipboardExpand all lines: articles/cognitive-services/Bing-Spell-Check/quickstarts/nodejs.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,11 +39,11 @@ Although this application is written in JavaScript, the API is a RESTful Web ser
39
39
let key ='<ENTER-KEY-HERE>';
40
40
```
41
41
42
-
2. Create variables for your search parameters and the text you want to check:
42
+
1. Create variables for your search parameters and the text you want to check:
43
43
44
-
a. Assign your market code to the `mkt` parameter with the `=`operator. The market code is the code of the country/region you make the request from.
44
+
1. Assign your market code to the `mkt` parameter with the `=`operator. The market code is the code of the country/region you make the request from.
45
45
46
-
b. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammar errors) or `spell` (catches most spelling errors, but not as many grammar errors).
46
+
1. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammar errors) or `spell` (catches most spelling errors, but not as many grammar errors).
Copy file name to clipboardExpand all lines: articles/cognitive-services/Bing-Spell-Check/quickstarts/python.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ Although this application is written in Python, the API is a RESTful Web service
33
33
import json
34
34
```
35
35
36
-
2. Create variables for the text you want to spell check, your subscription key, and your Bing Spell Check endpoint. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
36
+
1. Create variables for the text you want to spell check, your subscription key, and your Bing Spell Check endpoint. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource.
37
37
38
38
```python
39
39
api_key ="<ENTER-KEY-HERE>"
@@ -49,11 +49,11 @@ Although this application is written in Python, the API is a RESTful Web service
49
49
data = {'text': example_text}
50
50
```
51
51
52
-
2. Add the parameters for your request:
52
+
1. Add the parameters for your request:
53
53
54
-
a. Assign your market code to the `mkt` parameter with the `=` operator. The market code is the code of the country/region you make the request from.
54
+
1. Assign your market code to the `mkt` parameter with the `=` operator. The market code is the code of the country/region you make the request from.
55
55
56
-
b. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammar errors) or`spell` (catches most spelling errors, but notas many grammar errors).
56
+
1. Add the `mode` parameter with the `&` operator, and then assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammar errors) or`spell` (catches most spelling errors, but notas many grammar errors).
57
57
58
58
```python
59
59
params = {
@@ -62,7 +62,7 @@ Although this application is written in Python, the API is a RESTful Web service
62
62
}
63
63
```
64
64
65
-
3. Add a `Content-Type` header and your subscription key to the `Ocp-Apim-Subscription-Key` header.
65
+
1. Add a `Content-Type` header and your subscription key to the `Ocp-Apim-Subscription-Key` header.
66
66
67
67
```python
68
68
headers = {
@@ -79,7 +79,7 @@ Although this application is written in Python, the API is a RESTful Web service
Copy file name to clipboardExpand all lines: articles/cognitive-services/Bing-Spell-Check/quickstarts/ruby.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,11 @@ Although this application is written in Ruby, the API is a RESTful Web service c
35
35
require'json'
36
36
```
37
37
38
-
2. Create variables for your subscription key, endpoint URI, and path. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource. Create your request parameters:
38
+
1. Create variables for your subscription key, endpoint URI, and path. You can use the global endpoint in the following code, or use the [custom subdomain](../../../cognitive-services/cognitive-services-custom-subdomains.md) endpoint displayed in the Azure portal for your resource. Create your request parameters:
39
39
40
-
a. Assign your market code to the `mkt` parameter with the `=` operator. The market code is the code of the country/region you make the request from.
40
+
1. Assign your market code to the `mkt` parameter with the `=` operator. The market code is the code of the country/region you make the request from.
41
41
42
-
b. Add the `mode` parameter with the `&` operator, andthen assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammar errors) or`spell` (catches most spelling errors, but not as many grammar errors).
42
+
1. Add the `mode` parameter with the `&` operator, andthen assign the spell-check mode. The mode can be either `proof` (catches most spelling/grammar errors) or`spell` (catches most spelling errors, but not as many grammar errors).
43
43
44
44
```ruby
45
45
key = 'ENTER YOUR KEY HERE'
@@ -60,23 +60,23 @@ Although this application is written in Ruby, the API is a RESTful Web service c
60
60
})
61
61
```
62
62
63
-
2. Create a request using the URI constructed previously. Add your key to the `Ocp-Apim-Subscription-Key` header.
63
+
1. Create a request using the URI constructed previously. Add your key to the `Ocp-Apim-Subscription-Key` header.
0 commit comments