Skip to content

sharpapi/sharpapi-node-proofread

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpAPI GitHub cover

Proofreader & Grammar Checker API for Node.js

📝 Check grammar and spelling with AI — powered by SharpAPI.

npm version License

SharpAPI Proofreader checks your text for grammar, spelling, punctuation, and style issues. Provides detailed corrections and suggestions to improve your writing quality.


📋 Table of Contents

  1. Requirements
  2. Installation
  3. Usage
  4. API Documentation
  5. Examples
  6. Use Cases
  7. API Endpoint
  8. Related Packages
  9. License

Requirements

  • Node.js >= 16.x
  • npm or yarn

Installation

Step 1. Install the package via npm:

npm install @sharpapi/sharpapi-node-proofread

Step 2. Get your API key

Visit SharpAPI.com to get your API key.


Usage

const { SharpApiProofreadService } = require('@sharpapi/sharpapi-node-proofread');

const apiKey = process.env.SHARP_API_KEY; // Store your API key in environment variables
const service = new SharpApiProofreadService(apiKey);

const text = 'This text has some erors that need fixing.';

async function processText() {
  try {
    // Submit processing job
    const statusUrl = await service.proofread(text);
    console.log('Job submitted. Status URL:', statusUrl);

    // Fetch results (polls automatically until complete)
    const result = await service.fetchResults(statusUrl);
    console.log('Result:', result.getResultJson());
  } catch (error) {
    console.error('Error:', error.message);
  }
}

processText();

API Documentation

Methods

The service provides methods for processing content asynchronously. All methods return a status URL for polling results.

Parameters:

  • content (string, required): The content to process
  • language (string, optional): Output language
  • voice_tone (string, optional): Desired tone (e.g., professional, casual)
  • context (string, optional): Additional context for better results

For complete API specifications, see the Postman Documentation.

Response Format

The API returns structured JSON data. Response format varies by endpoint - see documentation for details.


Examples

Basic Example

const { SharpApiProofreadService } = require('@sharpapi/sharpapi-node-proofread');

const service = new SharpApiProofreadService(process.env.SHARP_API_KEY);

// Customize polling behavior if needed
service.setApiJobStatusPollingInterval(10);  // Poll every 10 seconds
service.setApiJobStatusPollingWait(180);     // Wait up to 3 minutes

// Use the service
// ... (implementation depends on specific service)

For more examples, visit the Product Page.


Use Cases

  • Content Quality: Ensure error-free blog posts and articles
  • Email Composition: Check emails before sending
  • Document Review: Proofread reports and documentation
  • E-commerce: Quality check product descriptions
  • Customer Support: Verify response quality
  • Academic Writing: Check essays and research papers

API Endpoint

POST /content/proofread

For detailed API specifications, refer to:


Related Packages


License

This project is licensed under the MIT License. See the LICENSE.md file for details.


Support


Powered by SharpAPI - AI-Powered API Workflow Automation

About

SharpAPI.com Node.js SDK for proofreading text

Resources

Stars

Watchers

Forks

Packages

No packages published