Dogfennaeth API Gwirydd Sillafu a Gramadeg

Spelling and Grammar Checker API Documentation


Wedi Diweddaru: 11 MawMar 2024

API Fersiwn 1 (v1) API Version 1 (v1)

Gwirio

Check

https://api.techiaith.cymru/cysill/v1/


Paramedr Math Disgrifiad
Field Type Description
text String Y testun i'w wirio Text required checking
max_errors Integer (Optional, default 1) Uchafswm sawl gwall i'w chynnwys yn yr ymateb Maximum number of errors to be returned in
lang Enum ('cy, 'en') (Optional, default 'cy') Iaith esboniadau gan Cysill Language of Cysill's explanations

Enghraifft:

Example:

                                
                                    curl https://api.techiaith.cymru/cysill/v1/?text=mae+hen+gwlad+fy+tadau&max_errors=10
                                
                            

Canlyniad Enghreifftiol:

Example Result:

                                
                                    {
                                        "version": 1,
                                        "success": true, 
                                        "result": 
                                            [
                                                {
                                                    "start": 4, 
                                                    "length": 9, 
                                                    "isSpelling": false, 
                                                    "message": "Mae 'hen' yn achosi treiglad meddal", 
                                                    "suggestions": [
                                                        "hen wlad"
                                                    ]
                                                }, 
                                                {
                                                    "start": 14, 
                                                    "length": 8, 
                                                    "isSpelling": false, 
                                                    "message": "Mae 'tadau' yn treiglo'n drwynol ar \u00f4l 'fy'", 
                                                    "suggestions": [
                                                        "fy nhadau"
                                                    ]
                                                }
                                            ]
                                        }
                                
                            

Cookies

Briwsion


We use cookies to improve your experience and enable recording your voice.

Rydym yn defnyddio briwsion i wella eich profiad a galluogi recordio eich llais

Accept & Continue Derbyn a Pharhau

Need to learn more? Privacy & Cookie Policy

Angen dysgu mwy? Preifatrwydd a Pholisi Briwsion