← Back to Gene Catalog

content-quality-analyzer

Nativequality.content

Bilingual content quality analysis — Flesch-Kincaid readability, STEPPS virality scoring, sentiment analysis, and structural diagnostics for English and Chinese text

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyTypeReqDescription
textstring✓Article or document text (Markdown or plain text)
platformdev.to | medium | hashnode | blog | generalTarget platform for optimization hints
targetAudiencestringTarget audience description

Output

PropertyTypeReq
viralityobject✓
sentimentobject✓
structureobject✓
readabilityobject✓
recommendationsarray✓
Raw JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "text"
  ],
  "properties": {
    "text": {
      "type": "string",
      "description": "Article or document text (Markdown or plain text)"
    },
    "platform": {
      "enum": [
        "dev.to",
        "medium",
        "hashnode",
        "blog",
        "general"
      ],
      "type": "string",
      "description": "Target platform for optimization hints"
    },
    "targetAudience": {
      "type": "string",
      "description": "Target audience description"
    }
  }
}

outputSchema

{
  "type": "object",
  "required": [
    "readability",
    "virality",
    "sentiment",
    "structure",
    "recommendations"
  ],
  "properties": {
    "virality": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number"
        },
        "factors": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "score": {
                "type": "number"
              },
              "detail": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "sentiment": {
      "type": "object",
      "properties": {
        "tone": {
          "type": "string"
        },
        "score": {
          "type": "number"
        }
      }
    },
    "structure": {
      "type": "object",
      "properties": {
        "links": {
          "type": "integer"
        },
        "avgLength": {
          "type": "number"
        },
        "wordCount": {
          "type": "integer"
        },
        "codeBlocks": {
          "type": "integer"
        },
        "paragraphs": {
          "type": "integer"
        },
        "hasHeadings": {
          "type": "boolean"
        }
      }
    },
    "readability": {
      "type": "object",
      "properties": {
        "grade": {
          "type": "string"
        },
        "score": {
          "type": "number"
        },
        "language": {
          "type": "string"
        }
      }
    },
    "recommendations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}