{
  "slug": "count-line-frequency",
  "name": "gizza-ai/count-line-frequency",
  "version": "0.1.0",
  "title": "Count Line Frequency — Rank lines by occurrence — gizza.ai",
  "description": "Count how often each line or value occurs and rank them most to least frequent, in your browser. Like sort | uniq -c | sort -rn. Nothing is uploaded.",
  "tags": [
    "count lines",
    "uniq -c",
    "frequency count",
    "tally",
    "duplicate counter",
    "rank lines"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/count-line-frequency/",
    "markdown": "https://gizza.ai/tools/count-line-frequency/index.md",
    "descriptor": "https://gizza.ai/tools/count-line-frequency/tool.json",
    "deep_link_example": "https://gizza.ai/tools/count-line-frequency/?text=Paste%20lines%2Fvalues%2C%20one%20per%20line%E2%80%A6&case_sensitive=true&trim=true"
  },
  "cli": "gizza tool count-line-frequency \"Paste lines/values, one per line…\"",
  "tool": {
    "description": "Count how often each line/value occurs in text and rank them from most to least frequent (like `sort | uniq -c | sort -rn`). Returns each distinct value with its count, plus the number of distinct values and total lines. case_sensitive (default true) and trim (default true) control grouping; blank lines are skipped. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "case_sensitive": {
          "default": true,
          "description": "When true (default), 'Apple' and 'apple' count separately; false groups them.",
          "type": "boolean"
        },
        "text": {
          "description": "The text whose lines/values to count (one per line).",
          "type": "string"
        },
        "trim": {
          "default": true,
          "description": "When true (default), strip surrounding whitespace before counting. Blank lines are always skipped.",
          "type": "boolean"
        }
      },
      "required": [
        "text"
      ],
      "type": "object"
    }
  }
}