{
    "success": true,
    "api_info": {
        "name": "Text Matching API",
        "version": "2.1",
        "description": "API so khớp từ tiếng Việt với tính năng chống hiệu ứng domino",
        "author": "TextMatcher Algorithm",
        "features": [
            "Exact matching",
            "Similar word detection (80% threshold)",
            "Missing word detection",
            "Punctuation error detection",
            "Transposed word detection with anti-domino logic",
            "Vietnamese text processing",
            "Multi-algorithm similarity calculation"
        ]
    },
    "endpoints": [
        {
            "method": "POST",
            "url": "\/index.php",
            "description": "So khớp hai đoạn text",
            "content_type": "application\/json",
            "body": {
                "original_text": "string (required) - Text gốc cần so khớp",
                "compare_text": "string (required) - Text để so sánh",
                "include_debug": "boolean (optional, default: false) - Bao gồm thông tin debug",
                "include_recommendations": "boolean (optional, default: true) - Bao gồm khuyến nghị"
            }
        },
        {
            "method": "GET",
            "url": "\/index.php?original_text=...&compare_text=...&debug=true",
            "description": "So khớp text qua query parameters (cho test nhanh)",
            "parameters": {
                "original_text": "string (required) - Text gốc",
                "compare_text": "string (required) - Text so sánh",
                "debug": "boolean (optional) - Hiển thị debug info"
            }
        },
        {
            "method": "GET",
            "url": "\/index.php",
            "description": "Lấy thông tin API này"
        }
    ],
    "result_codes": {
        "MATCH": "Khớp hoàn toàn",
        "MISSING": "Thiếu từ",
        "WRONG": "Từ sai",
        "SIMILAR": "Tương đối giống (>= 80%)",
        "PUNCTUATION_ERROR": "Sai dấu câu",
        "TRANSPOSED": "Hoán vị vị trí"
    },
    "example_request": {
        "POST": {
            "url": "\/index.php",
            "headers": {
                "Content-Type": "application\/json"
            },
            "body": {
                "original_text": "Trên bức tường trắng hiện lên những nét than đen",
                "compare_text": "Trên bức tường hiện lên nhưng nét than đen",
                "include_debug": false,
                "include_recommendations": true
            }
        },
        "GET": "\/index.php?original_text=Hello world&compare_text=Hello word&debug=true"
    }
}