emacs.d/clones/lisp/www.cliki.net/Basic-English-Grammar.html
2022-10-07 15:47:14 +02:00

59 lines
No EOL
4.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>CLiki: Basic-English-Grammar</title>
<link rel="alternate" type="application/atom+xml" title="ATOM feed of edits to current article"
href="https://www.cliki.net/site/feed/article.atom?title=Basic-English-Grammar">
<link rel="stylesheet" href="static/css/style.css">
<link rel="stylesheet" href="static/css/colorize.css">
</head>
<body>
<span class="hidden">CLiki - Basic-English-Grammar</span>
<div id="content"><div id="content-area"><div id="article-title">Basic-English-Grammar</div><div id="article">Basic-English-Grammar is a lisp system for working with the English grammar data from the <a href="http://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/nlp/corpora/keiras/0.html">CMU AI repository</a> (original authors: John Lawler and Dave Keiras, University of Michigan).<p>The original data is in the <a href="public&#32;domain.html" class="category">public domain</a>, as is the new lisp system.<p>The lisp library exports a single function, <code>grammar-of</code>, which takes a string and returns a list of grammatical categories that the string is known to fall into (NIL if the string is an unknown word). For example:<p><div class="code"><span class="nonparen">CL-USER&gt; <span class="paren1">(<span class="nonparen">beg:grammar-of <span class="string">"write"</span></span>)</span>
<span class="paren1">(<span class="nonparen"><span class="keyword">:VERB</span></span>)</span>
CL-USER&gt; <span class="paren1">(<span class="nonparen">beg:grammar-of <span class="string">"right"</span></span>)</span>
<span class="paren1">(<span class="nonparen"><span class="keyword">:VERB</span> <span class="keyword">:ADJECTIVE</span></span>)</span>
CL-USER&gt; <span class="paren1">(<span class="nonparen">beg:grammar-of <span class="string">"wrote"</span></span>)</span>
<span class="paren1">(<span class="nonparen"><span class="keyword">:PAST-PARTICIPLE</span> <span class="keyword">:VERB</span></span>)</span>
CL-USER&gt; <span class="paren1">(<span class="nonparen">beg:grammar-of <span class="string">"writer"</span></span>)</span>
<span class="paren1">(<span class="nonparen"><span class="keyword">:NOUN</span></span>)</span></span></div><p>Download: <a href="http://abstractnonsense.com/basic-english-grammar-1.0.tgz">basic-english-grammar-1.0.tgz</a><p><hr>
<a href="Natural&#32;Language&#32;Processing.html" class="category">Natural Language Processing</a></div></div>
<div id="footer" class="buttonbar"><ul><li><a href="Basic-English-Grammar.html">Current version</a></li>
<li><a href="https://www.cliki.net/site/history?article=Basic-English-Grammar">History</a></li>
<li><a href="https://www.cliki.net/site/backlinks?article=Basic-English-Grammar">Backlinks</a></li><li><a href="https://www.cliki.net/site/edit-article?title=Basic-English-Grammar&amp;from-revision=3822850326">Edit</a></li><li><a href="https://www.cliki.net/site/edit-article?create=t">Create</a></li></ul></div>
</div>
<div id="header-buttons" class="buttonbar">
<ul>
<li><a href="https://www.cliki.net/">Home</a></li>
<li><a href="https://www.cliki.net/site/recent-changes">Recent Changes</a></li>
<li><a href="CLiki.html">About</a></li>
<li><a href="Text&#32;Formatting.html">Text Formatting</a></li>
<li><a href="https://www.cliki.net/site/tools">Tools</a></li>
</ul>
<div id="search">
<form action="https://www.cliki.net/site/search">
<label for="search_query" class="hidden">Search CLiki</label>
<input type="text" name="query" id="search_query" value="" />
<input type="submit" value="search" />
</form>
</div>
</div>
<div id="pageheader">
<div id="header">
<span id="logo">CLiki</span>
<span id="slogan">the common lisp wiki</span>
<div id="login"><form method="post" action="https://www.cliki.net/site/login">
<label for="login_name" class="hidden">Account name</label>
<input type="text" name="name" id="login_name" class="login_input" />
<label for= "login_password" class="hidden">Password</label>
<input type="password" name="password" id="login_password" class="login_input" />
<input type="submit" name="login" value="login" id="login_submit" /><br />
<div id="register"><a href="https://www.cliki.net/site/register">register</a></div>
<input type="submit" name="reset-pw" value="reset password" id="reset_pw" />
</form>
</div>
</div>
</div>
</body></html>