1

默认情况下, Hunspell不处理常见的英语动词缩写-inglike goingivindoin等。这些动词缩写似乎不被处理。举个例子

I'm going to surfin' and livin' on my own and maybe givin' up

这将是这句话的 hunspell 正确、建议、分析(形态):

[
                                {
                                    "word": "I",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "m",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "goin",
                                    "stems": [],
                                    "suggestion": [
                                        "goon",
                                        "gin",
                                        "groin",
                                        "going",
                                        "gain",
                                        "grin",
                                        "loin",
                                        "coin",
                                        "gown",
                                        "go in",
                                        "go-in"
                                    ],
                                    "correct": false,
                                    "analysis": []
                                },
                                {
                                    "word": "to",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "surfin",
                                    "stems": [],
                                    "suggestion": [
                                        "surfing",
                                        "surf in",
                                        "surf-in",
                                        "superfine"
                                    ],
                                    "correct": false,
                                    "analysis": []
                                },
                                {
                                    "word": "and",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "livin",
                                    "stems": [],
                                    "suggestion": [
                                        "living",
                                        "liven",
                                        "livid",
                                        "violin",
                                        "Lin"
                                    ],
                                    "correct": false,
                                    "analysis": []
                                },
                                {
                                    "word": "on",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "my",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "own",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "and",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                },
                                {
                                    "word": "maybe",
                                    "stems": [
                                        "maybe"
                                    ],
                                    "suggestion": [],
                                    "correct": true,
                                    "analysis": [
                                        " st: maybe"
                                    ]
                                },
                                {
                                    "word": "givin",
                                    "stems": [],
                                    "suggestion": [
                                        "giving",
                                        "given",
                                        "virgin",
                                        "gin"
                                    ],
                                    "correct": false,
                                    "analysis": []
                                },
                                {
                                    "word": "up",
                                    "stems": [],
                                    "suggestion": [],
                                    "correct": true
                                }
                            ]

givin所以对于像正确标志这样的收缩false,有一些建议,其中包括-ingform giving。由于某种原因,形态分析不存在。那么如何添加对英语动词形式的支持,-ing以便被认为是正确的术语?英文词缀词典要加一些规则吗?

4

0 回答 0