summaryrefslogtreecommitdiff
path: root/src/www/gf-web-api-examples.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/www/gf-web-api-examples.html')
-rw-r--r--src/www/gf-web-api-examples.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/www/gf-web-api-examples.html b/src/www/gf-web-api-examples.html
index 8a419012d..204a48a9d 100644
--- a/src/www/gf-web-api-examples.html
+++ b/src/www/gf-web-api-examples.html
@@ -171,9 +171,13 @@ full API.
"children":[{"fun":"Pizza","fid":0}]},
{"fun":"Very","fid":3,
"children":[{"fun":"Boring","fid":2}]}]}
+ <dt class=js><em>// Lookup the morphological analysis of a word</em>
+ <br>server.pgf_call("lookupmorpho",{input:"fish",from:"FoodsEng"},callback)
+ <dt>http://localhost:41296/grammars/Foods.pgf?command=lookupmorpho&amp;input=fish&amp;from=FoodsEng
+ <dd>[{"lemma":"Fish","analysis":"s Pl"},{"lemma":"Fish","analysis":"s Sg"}]
</dl>
<hr>
<div class=modtime><small>
-<!-- hhmts start -->Last modified: Fri Aug 16 16:48:28 CEST 2013 <!-- hhmts end -->
+<!-- hhmts start -->Last modified: Sat Jun 21 14:57:43 CEST 2014 <!-- hhmts end -->
</small></div>
<address><a href="http://www.cse.chalmers.se/~hallgren/">TH</a></address>