diff options
| author | john <john@johnjcamilleri.com> | 2014-07-11 09:25:26 +0000 |
|---|---|---|
| committer | john <john@johnjcamilleri.com> | 2014-07-11 09:25:26 +0000 |
| commit | 9b496084512ca94ca7fb96fd606e749d02022aad (patch) | |
| tree | d52b20ccca47bd313f0355cf16e3ecfb6fe3797c /src/server/exec/MorphoService.hs | |
| parent | 0222d2440c6b6246da2a5d8d397bb1d766419c0e (diff) | |
PGF web service: Return additional completion info with 'full' flag
BETA! The 'complete' command now has a new flag 'full' which when set
returns additional info about completions.
Without 'full' flag (default):
[
{
"from": "PhrasebookEng",
"brackets": {
"cat": "_",
"fid": 0,
"index": 0,
"fun": "_",
"children": [
{
"token": "the"
}
]
},
"text": "su",
"completions": [
"supermarket",
"suspect"
]
}
]
With full=true or full=yes:
[
{
"from": "PhrasebookEng",
"brackets": {
"cat": "_",
"fid": 0,
"index": 0,
"fun": "_",
"children": [
{
"token": "the"
}
]
},
"text": "su",
"completions": [
{
"token": "supermarket",
"funs": [
{
"fid": 421,
"fun": "Supermarket",
"hyps": [],
"cat": "PlaceKind"
}
]
},
{
"token": "suspect",
"funs": [
{
"fid": 445,
"fun": "Suspect",
"hyps": [],
"cat": "Property"
}
]
}
]
}
]
Diffstat (limited to 'src/server/exec/MorphoService.hs')
0 files changed, 0 insertions, 0 deletions
