Skip to content

Commit dfdce04

Browse files
author
dksimpson
committed
Edit procedures
1 parent 6cf719c commit dfdce04

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Although this application is written in C#, the API is a RESTful Web service com
2929
1. Select **Manage NuGet Packages for Solution**.
3030
1. Search for *Newtonsoft.Json* and install the package.
3131

32-
* If you're using Linux/MacOS, this application can be run using [Mono](https://www.mono-project.com/).
32+
* If you're using Linux/MacOS, you can run this application by using [Mono](https://www.mono-project.com/).
3333

3434
[!INCLUDE [cognitive-services-bing-spell-check-signup-requirements](../../../../includes/cognitive-services-bing-spell-check-signup-requirements.md)]
3535

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,7 @@ Although this application is written in Java, the API is a RESTful web service c
5353
5454
## Create and send an API request
5555
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.
57-
58-
Create a string for the request parameters:
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:
5957
6058
a. Assign your market code to the `mkt` parameter with the `=` operator.
6159

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Although this application is written in JavaScript, the API is a RESTful Web ser
5454

5555
## Create the request parameters
5656

57-
1. Create your request parameters by creating a new object with a `POST` method. Add your path by appending your endpoint path, and query string. Then, add your subscription key to the `Ocp-Apim-Subscription-Key` header.
57+
Create your request parameters by creating a new object with a `POST` method. Add your path by appending your endpoint path, and query string. Then, add your subscription key to the `Ocp-Apim-Subscription-Key` header.
5858

5959
```javascript
6060
let request_params = {
@@ -71,7 +71,7 @@ let request_params = {
7171

7272
## Create a response handler
7373

74-
Create a function called `response_handler` to take the JSON response from the API, and print it. Create a variable for the response body. Append the response when a `data` flag is received, using `response.on()`. When a `end` flag is received, print the JSON body to the console.
74+
Create a function called `response_handler` to take the JSON response from the API, and print it. Create a variable for the response body. Append the response when a `data` flag is received by using `response.on()`. After an `end` flag is received, print the JSON body to the console.
7575

7676
```javascript
7777
let response_handler = function (response) {
@@ -91,7 +91,7 @@ let response_handler = function (response) {
9191

9292
## Send the request
9393

94-
Call the API using `https.request()` with your request parameters and response handler. Write your text to the API, and end the request afterwards.
94+
Call the API using `https.request()` with your request parameters and response handler. Write your text to the API, and then end the request.
9595

9696
```javascript
9797
let req = https.request (request_params, response_handler);
@@ -104,7 +104,7 @@ req.end ();
104104

105105
1. Build and run your project.
106106

107-
1. If you're using the command line, use the following commands to build and run the application:
107+
1. If you're using the command line, use the following command to build and run the application:
108108

109109
```bash
110110
node <FILE_NAME>.js

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Although this application is written in Python, the API is a RESTful Web service
2626

2727
## Initialize the application
2828

29-
1. Create a new Python file in your favorite IDE or editor, and add the following import statement:
29+
1. Create a new Python file in your favorite IDE or editor, and add the following import statements:
3030

3131
```python
3232
import requests
@@ -73,13 +73,13 @@ Although this application is written in Python, the API is a RESTful Web service
7373

7474
## Send the request and read the response
7575

76-
1. Send the POST request using the requests library.
76+
1. Send the POST request by using the requests library.
7777

7878
```python
7979
response = requests.post(endpoint, headers=headers, params=params, data=data)
8080
```
8181

82-
2. Get the JSON response, and print it.
82+
2. 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: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ 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. Create your request parameters:
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:
3939

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

4242
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).
4343

44-
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.
45-
4644
```ruby
4745
key = 'ENTER YOUR KEY HERE'
4846
uri = 'https://api.cognitive.microsoft.com'
@@ -62,7 +60,7 @@ Although this application is written in Ruby, the API is a RESTful Web service c
6260
})
6361
```
6462

65-
2. Create a request using the URI constructed above. Add your key to the `Ocp-Apim-Subscription-Key` header.
63+
2. Create a request using the URI constructed previously. Add your key to the `Ocp-Apim-Subscription-Key` header.
6664

6765
```ruby
6866
request = Net::HTTP::Post.new(uri)
@@ -87,9 +85,7 @@ Although this application is written in Ruby, the API is a RESTful Web service c
8785

8886
## Run the application
8987

90-
1. Build and run your project.
91-
92-
1. If you're using the command line, use the following command to run the application:
88+
Build and run your project. If you're using the command line, use the following command to run the application:
9389
9490
```bash
9591
ruby <FILE_NAME>.rb

0 commit comments

Comments
 (0)