π Text Analyzer - Comprehensive Text AnalysisΒΆ
Analyze text for sentiment, readability, statistics, and keywords.
Text Analyzer provides in-depth analysis of text content, offering insights into sentiment, readability levels, linguistic statistics, and automatic keyword extraction.
π FeaturesΒΆ
- β Sentiment Analysis - Positive, negative, or neutral classification with confidence scores
- β Readability Scoring - Flesch Reading Ease, Flesch-Kincaid Grade Level, ARI
- β Text Statistics - Word count, sentence count, character count, reading time
- β Keyword Extraction - Automatic identification of important keywords
- β Reading Level Assessment - Determine appropriate audience reading level
- β Complexity Analysis - Analyze text complexity and structure
- β Language Detection - Identify the language of the text
- β Tone Analysis - Detect formal vs. casual tone
π Getting StartedΒΆ
EndpointΒΆ
Basic Analysis (GET)ΒΆ
Advanced Analysis (POST)ΒΆ
curl -X POST https://apis.novasuite.one/web/text-analyzer \
-H "Content-Type: application/json" \
-d '{
"text": "Your text here",
"options": {
"sentiment": true,
"readability": true,
"keywords": true,
"statistics": true
}
}'
π Response FormatΒΆ
Complete Analysis ResponseΒΆ
{
"service": "NovaAPIs Text Analyzer",
"timestamp": "2025-11-22T12:00:00.000Z",
"results": {
"text": "Your analyzed text...",
"sentiment": {
"label": "positive",
"score": 0.85,
"confidence": 0.92,
"breakdown": {
"positive": 0.85,
"negative": 0.05,
"neutral": 0.10
}
},
"readability": {
"fleschReadingEase": 65.5,
"fleschKincaidGrade": 8.2,
"automatedReadabilityIndex": 7.8,
"readingLevel": "8th-9th grade",
"readingTime": "2 minutes"
},
"statistics": {
"characters": 1247,
"charactersWithoutSpaces": 1024,
"words": 245,
"sentences": 18,
"paragraphs": 4,
"syllables": 387,
"averageWordLength": 4.2,
"averageSentenceLength": 13.6,
"uniqueWords": 156,
"lexicalDiversity": 0.64
},
"keywords": [
{
"word": "artificial intelligence",
"frequency": 8,
"relevance": 0.95
},
{
"word": "machine learning",
"frequency": 5,
"relevance": 0.87
},
{
"word": "neural networks",
"frequency": 4,
"relevance": 0.82
}
],
"tone": {
"formality": "formal",
"formalityScore": 0.78,
"objectivity": "objective",
"objectivityScore": 0.85
},
"language": {
"detected": "en",
"confidence": 0.99,
"name": "English"
}
}
}
π― Use CasesΒΆ
- Content Quality - Assess readability and complexity of written content
- SEO Optimization - Extract keywords for search optimization
- Content Moderation - Detect sentiment and tone in user-generated content
- Educational Tools - Determine appropriate reading levels
- Writing Assistance - Provide feedback on writing clarity
- Social Media Monitoring - Analyze sentiment of posts and comments
- Customer Feedback - Understand sentiment in reviews and surveys
- Academic Research - Analyze text complexity and structure
π Code ExamplesΒΆ
JavaScript/Node.jsΒΆ
async function analyzeText(text) {
const response = await fetch(
`https://apis.novasuite.one/web/text-analyzer?text=${encodeURIComponent(text)}`
);
const data = await response.json();
console.log('Sentiment:', data.results.sentiment.label);
console.log('Score:', data.results.sentiment.score);
console.log('Reading Level:', data.results.readability.readingLevel);
console.log('Keywords:', data.results.keywords);
return data.results;
}
// Usage
analyzeText('Artificial intelligence is transforming the world...');
Advanced AnalysisΒΆ
async function advancedAnalysis(text) {
const response = await fetch(
'https://apis.novasuite.one/web/text-analyzer',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
text: text,
options: {
sentiment: true,
readability: true,
keywords: true,
statistics: true,
tone: true
}
})
}
);
const data = await response.json();
return data.results;
}
// Usage
advancedAnalysis('Your long text content here...');
PythonΒΆ
import requests
def analyze_text(text):
response = requests.get(
'https://apis.novasuite.one/web/text-analyzer',
params={'text': text}
)
data = response.json()
print(f"Sentiment: {data['results']['sentiment']['label']}")
print(f"Score: {data['results']['sentiment']['score']}")
print(f"Reading Level: {data['results']['readability']['readingLevel']}")
print(f"Keywords: {data['results']['keywords']}")
return data['results']
# Usage
analyze_text('Artificial intelligence is transforming the world...')
Advanced Analysis (Python)ΒΆ
import requests
def advanced_analysis(text):
response = requests.post(
'https://apis.novasuite.one/web/text-analyzer',
json={
'text': text,
'options': {
'sentiment': True,
'readability': True,
'keywords': True,
'statistics': True,
'tone': True
}
}
)
data = response.json()
return data['results']
# Usage
advanced_analysis('Your long text content here...')
cURLΒΆ
# Basic analysis
curl "https://apis.novasuite.one/web/text-analyzer?text=Hello+world" \
| jq '.results.sentiment'
# Advanced analysis
curl -X POST https://apis.novasuite.one/web/text-analyzer \
-H "Content-Type: application/json" \
-d '{"text": "Your text here", "options": {"sentiment": true, "keywords": true}}' \
| jq '.results'
π API ReferenceΒΆ
GET /web/text-analyzerΒΆ
Query Parameters:
text(required) - Text to analyze
Response: Complete text analysis
POST /web/text-analyzerΒΆ
Body:
{
"text": "string", // Text to analyze (required)
"options": { // Optional analysis options
"sentiment": true, // Include sentiment analysis
"readability": true, // Include readability scores
"keywords": true, // Extract keywords
"statistics": true, // Include text statistics
"tone": true, // Analyze tone
"language": true // Detect language
}
}
Response: Text analysis based on selected options
π Understanding the ScoresΒΆ
Sentiment ScoresΒΆ
| Score Range | Label | Description |
|---|---|---|
| 0.5 to 1.0 | Positive | Text expresses positive sentiment |
| -0.5 to 0.5 | Neutral | Text is neutral or balanced |
| -1.0 to -0.5 | Negative | Text expresses negative sentiment |
Flesch Reading EaseΒΆ
| Score Range | Reading Level | Description |
|---|---|---|
| 90-100 | 5th grade | Very easy to read |
| 80-90 | 6th grade | Easy to read |
| 70-80 | 7th grade | Fairly easy |
| 60-70 | 8th-9th grade | Standard |
| 50-60 | 10th-12th grade | Fairly difficult |
| 30-50 | College | Difficult |
| 0-30 | College graduate | Very difficult |
Flesch-Kincaid Grade LevelΒΆ
Indicates the U.S. school grade level needed to understand the text.
- Score 8.0 = 8th grade reading level
- Score 12.0 = 12th grade (high school senior)
- Score 16.0 = College senior level
π Privacy & DataΒΆ
- No data storage - Text is analyzed in real-time and not stored
- No tracking - We don't track users or their content
- Privacy-first - Your text content is never logged or saved
- CORS enabled - Use from any domain
β‘ Rate LimitsΒΆ
Free Tier: 50 requests per hour per IP
Rate limit information is included in response headers:
X-RateLimit-Limit- Maximum requests allowedX-RateLimit-Remaining- Requests remaining in current windowX-RateLimit-Reset- Unix timestamp when limit resets
π‘ Tips & Best PracticesΒΆ
- Longer text = better analysis - More accurate results with 100+ words
- Use POST for large text - Avoid URL length limits
- Select specific options - Only request the analysis you need
- Cache results - Avoid re-analyzing the same text
- Combine with other APIs - Use with Rich Suggestions for content enhancement
π SupportΒΆ
For questions or support inquiries, please contact us at api@novasuite.one.