Skip to content

Commit 2d74100

Browse files
author
dksimpson
committed
Fix list format to conform to standards
1 parent 8070e08 commit 2d74100

File tree

5 files changed

+28
-28
lines changed

5 files changed

+28
-28
lines changed

articles/cognitive-services/Bing-Spell-Check/quickstarts/csharp.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Although this application is written in C#, the API is a RESTful Web service com
4747
using Newtonsoft.Json;
4848
```
4949

50-
2. Create variables for 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) endpoint displayed in the Azure portal for your resource.
50+
1. Create variables for 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) endpoint displayed in the Azure portal for your resource.
5151

5252
```csharp
5353
namespace SpellCheckSample
@@ -63,11 +63,11 @@ Although this application is written in C#, the API is a RESTful Web service com
6363
}
6464
```
6565

66-
3. Create a string for your search parameters:
66+
1. Create a string for your search parameters:
6767

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.
6969

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/grammar errors) or `spell` (catches most spelling errors, but not as many grammar errors).
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/grammar errors) or `spell` (catches most spelling errors, but not as many grammar errors).
7171

7272
```csharp
7373
static string params_ = "mkt=en-US&mode=proof";
@@ -88,13 +88,13 @@ Although this application is written in C#, the API is a RESTful Web service com
8888
}
8989
```
9090

91-
2. Create the URI for your request by appending your host, path, and parameters.
91+
1. Create the URI for your request by appending your host, path, and parameters.
9292

9393
```csharp
9494
string uri = host + path + params_;
9595
```
9696

97-
3. Create a list with a `KeyValuePair` object containing your text, and use it to create a `FormUrlEncodedContent` object. Set the header information, and use `PostAsync()` to send the request.
97+
1. Create a list with a `KeyValuePair` object containing your text, and use it to create a `FormUrlEncodedContent` object. Set the header information, and use `PostAsync()` to send the request.
9898

9999
```csharp
100100
var values = new Dictionary<string, string>();

articles/cognitive-services/Bing-Spell-Check/quickstarts/java.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Although this application is written in Java, the API is a RESTful web service c
3838
import javax.net.ssl.HttpsURLConnection;
3939
```
4040

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.
4242
4343
```java
4444
static String host = "https://api.cognitive.microsoft.com";
@@ -55,9 +55,9 @@ Although this application is written in Java, the API is a RESTful web service c
5555
5656
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:
5757
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.
5959
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.
6161
6262
```java
6363
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
6666
}
6767
```
6868
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.
7070
7171
```java
7272
URL url = new URL(host + path + params);
7373
HttpsURLConnection connection = (HttpsURLConnection) url.openConnection();
7474
```
7575
76-
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.
7777
7878
```java
7979
connection.setRequestMethod("POST");
@@ -82,7 +82,7 @@ Although this application is written in Java, the API is a RESTful web service c
8282
connection.setDoOutput(true);
8383
```
8484
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.
8686
8787
```java
8888
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
141141
javac -classpath .;gson-2.2.2.jar\* <CLASS_NAME>.java
142142
```
143143

144-
2. Run the application:
144+
1. Run the application:
145145

146146
```bash
147147
java -cp .;gson-2.2.2.jar\* <CLASS_NAME>

articles/cognitive-services/Bing-Spell-Check/quickstarts/nodejs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ Although this application is written in JavaScript, the API is a RESTful Web ser
3939
let key = '<ENTER-KEY-HERE>';
4040
```
4141

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:
4343

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.
4545

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).
4747

4848
```javascript
4949
let mkt = "en-US";

articles/cognitive-services/Bing-Spell-Check/quickstarts/python.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Although this application is written in Python, the API is a RESTful Web service
3333
import json
3434
```
3535

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.
3737

3838
```python
3939
api_key = "<ENTER-KEY-HERE>"
@@ -49,11 +49,11 @@ Although this application is written in Python, the API is a RESTful Web service
4949
data = {'text': example_text}
5050
```
5151

52-
2. Add the parameters for your request:
52+
1. Add the parameters for your request:
5353

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.
5555

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 not as 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 not as many grammar errors).
5757

5858
```python
5959
params = {
@@ -62,7 +62,7 @@ Although this application is written in Python, the API is a RESTful Web service
6262
}
6363
```
6464

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.
6666

6767
```python
6868
headers = {
@@ -79,7 +79,7 @@ Although this application is written in Python, the API is a RESTful Web service
7979
response = requests.post(endpoint, headers=headers, params=params, data=data)
8080
```
8181

82-
2. Get the JSON response and print it.
82+
1. Get the JSON response and print it.
8383

8484
```python
8585
json_response = response.json()

articles/cognitive-services/Bing-Spell-Check/quickstarts/ruby.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ Although this application is written in Ruby, the API is a RESTful Web service c
3535
require 'json'
3636
```
3737

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:
3939

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.
4141

42-
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).
42+
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).
4343

4444
```ruby
4545
key = 'ENTER YOUR KEY HERE'
@@ -60,23 +60,23 @@ Although this application is written in Ruby, the API is a RESTful Web service c
6060
})
6161
```
6262

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.
6464

6565
```ruby
6666
request = Net::HTTP::Post.new(uri)
6767
request['Content-Type'] = "application/x-www-form-urlencoded"
6868
request['Ocp-Apim-Subscription-Key'] = key
6969
```
7070

71-
3. Send the request.
71+
1. Send the request.
7272

7373
```ruby
7474
response = Net::HTTP.start(uri.host, uri.port, :use_ssl => uri.scheme == 'https') do |http|
7575
http.request(request)
7676
end
7777
```
7878

79-
4. Get the JSON response, and print it to the console.
79+
1. Get the JSON response, and print it to the console.
8080

8181
```ruby
8282
result = JSON.pretty_generate(JSON.parse(response.body))

0 commit comments

Comments
 (0)