{
  "id": "mecab",
  "name": "MeCab",
  "homepage": "https://github.com/taku910/mecab",
  "description": "Yet another Japanese morphological analyzer",
  "executables": [
    "mecab"
  ],
  "dotfiles": {
    "paths": [
      "~/.mecabrc"
    ],
    "secret": []
  },
  "commands": {
    "format": 1,
    "label": "Analyze text",
    "description": "Morphologically analyze files (or stdin when none are given) with common dictionary, output and N-best options. Format strings and lattice options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": false,
      "short_bundles": false
    },
    "source": [
      {
        "id": "man",
        "kind": "manual",
        "url": "https://manpages.debian.org/unstable/mecab/mecab.1.en.html",
        "revision": "0.996-16.1",
        "evidence": "mecab [options] files\n-r, --rcfile=FILE\nuse FILE as resource file\n-d, --dicdir=DIR\nset DIR as a system dicdir\n-u, --userdic=FILE\nuse FILE as a user dictionary\n-a, --all-morphs\noutput all morphs(default false)\n-O, --output-format-type=TYPE\nset output format type (wakati,none,...)\n-p, --partial\npartial parsing mode\n-N, --nbest=INT\noutput N best results (default 1)\n-o, --output=FILE\nset the output file name\n-D, --dictionary-info\nshow dictionary information and exit\n"
      }
    ],
    "field": [
      {
        "id": "files",
        "label": "Input files",
        "type": "path",
        "position": 0,
        "multiple": true,
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "output_format",
        "label": "Output format type",
        "type": "string",
        "option": [
          "--output-format-type",
          "-O"
        ],
        "suggestions": [
          {
            "value": "wakati",
            "label": "Wakati (space-separated words)"
          },
          {
            "value": "none",
            "label": "None"
          }
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "nbest",
        "label": "N-best results",
        "type": "integer",
        "option": [
          "--nbest",
          "-N"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "all_morphs",
        "label": "Output all morphs",
        "type": "boolean",
        "option": [
          "--all-morphs",
          "-a"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "partial",
        "label": "Partial parsing mode",
        "type": "boolean",
        "option": [
          "--partial",
          "-p"
        ],
        "sources": [
          "man"
        ]
      },
      {
        "id": "dicdir",
        "label": "System dictionary directory",
        "type": "path",
        "option": [
          "--dicdir",
          "-d"
        ],
        "path": {
          "kind": "directory",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "userdic",
        "label": "User dictionary",
        "type": "path",
        "option": [
          "--userdic",
          "-u"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "rcfile",
        "label": "Resource file",
        "type": "path",
        "option": [
          "--rcfile",
          "-r"
        ],
        "path": {
          "kind": "file",
          "role": "input"
        },
        "sources": [
          "man"
        ]
      },
      {
        "id": "output",
        "label": "Output file",
        "type": "path",
        "option": [
          "--output",
          "-o"
        ],
        "path": {
          "kind": "file",
          "role": "output"
        },
        "effect": "overwrite",
        "sources": [
          "man"
        ]
      },
      {
        "id": "dictionary_info",
        "label": "Show dictionary info",
        "type": "boolean",
        "option": [
          "--dictionary-info",
          "-D"
        ],
        "sources": [
          "man"
        ]
      }
    ],
    "task": [
      {
        "id": "wakati",
        "label": "Split into words",
        "fields": [
          "files",
          "output_format",
          "output"
        ],
        "required": [
          "files"
        ],
        "set": {
          "output_format": [
            "wakati"
          ]
        }
      },
      {
        "id": "nbest",
        "label": "N-best analysis",
        "fields": [
          "files",
          "nbest",
          "userdic"
        ],
        "required": [
          "files",
          "nbest"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "files",
          "output_format",
          "nbest",
          "all_morphs",
          "partial",
          "output"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "dicdir",
          "userdic",
          "rcfile",
          "dictionary_info"
        ]
      }
    ]
  }
}
