richard.g.engle
Coder
i am trying to find a thesuarus program for finding synonyms to words in text. I found a place called wordnet. http://wordnetweb.princeton.edu/perl/webwn .. i tried directly copying their source directly to codpen. https://codepen.io/richardengle/pen/vYyGwVW ... no good, 404.
so, I also tried using a recomended site. http://www.golovchenko.org/cgi-bin/wnsearch. i copied its source to codepen, and have tried modifying the source. All am able to do in codpen is to get it to recursively call itself.
any idea on how to get the synonym of a word using js
==== below are some of the code
==russian site into codepen
--------doesnt get syns
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>WordNet Search</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script><!--
function sf(){document.f.q.focus();}
//-->
</script>
</head>
<body onload="sf();">
<h2><a href="http://wordnet.princeton.edu">WordNet 3.0</a>, a lexical database for the English language</h2>
<p>Search a word: <form name="f" action="http://www.golovchenko.org/cgi-bin/wnsearch?q=job"><div>
<INPUT name=q>
<INPUT type=submit value=Go>
</div></form>
<p><small>Last updated on: Sep 17 2007</small>
</body> </html>
==========================
== if i modify the russian link to my codpen link, it just loads into itself
===https://codepen.io/richardengle/pen/QWGNOqy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>WordNet Search</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script><!--
function sf(){document.f.q.focus();}
//-->
</script>
</head>
<body onload="sf();">
<h2><a href="http://wordnet.princeton.edu">WordNet 3.0</a>, a lexical database for the English language</h2>
<p>Search a word: <form name="f" action="https://codepen.io/richardengle/pen/QWGNOqy"><div>
<INPUT name=q>
<INPUT type=submit value=Go>
</div></form>
<p><small>Last updated on: Sep 17 2007</small>
</body> </html>
-------------- at wordnet
so, I also tried using a recomended site. http://www.golovchenko.org/cgi-bin/wnsearch. i copied its source to codepen, and have tried modifying the source. All am able to do in codpen is to get it to recursively call itself.
any idea on how to get the synonym of a word using js
==== below are some of the code
==russian site into codepen
--------doesnt get syns
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>WordNet Search</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script><!--
function sf(){document.f.q.focus();}
//-->
</script>
</head>
<body onload="sf();">
<h2><a href="http://wordnet.princeton.edu">WordNet 3.0</a>, a lexical database for the English language</h2>
<p>Search a word: <form name="f" action="http://www.golovchenko.org/cgi-bin/wnsearch?q=job"><div>
<INPUT name=q>
<INPUT type=submit value=Go>
</div></form>
<p><small>Last updated on: Sep 17 2007</small>
</body> </html>
==========================
== if i modify the russian link to my codpen link, it just loads into itself
===https://codepen.io/richardengle/pen/QWGNOqy
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<title>WordNet Search</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script><!--
function sf(){document.f.q.focus();}
//-->
</script>
</head>
<body onload="sf();">
<h2><a href="http://wordnet.princeton.edu">WordNet 3.0</a>, a lexical database for the English language</h2>
<p>Search a word: <form name="f" action="https://codepen.io/richardengle/pen/QWGNOqy"><div>
<INPUT name=q>
<INPUT type=submit value=Go>
</div></form>
<p><small>Last updated on: Sep 17 2007</small>
</body> </html>
-------------- at wordnet
<!DOCTYPE html | |
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US"> | |
<head> | |
<title>WordNet Search - 3.1</title> | |
<style type="text/css"> | |
<!--/* <![CDATA[ */ | |
ul.typer {list-style-type: circle;} | |
ul.types {list-style-type: disc;} | |
ul.typew {list-style-type: disc;} | |
a.warning {color: red;} | |
a:link.relWords {color: green;} | |
a.pos {color: red;} | |
a.showAll { | |
font-size: 75%; | |
font-family: sans-serif; } | |
body { | |
background: #E7E7E7; | |
font-family: Lucida Grande,"Lucida Grande Unicode",Helvetica,Arial,sans-serif; | |
} | |
.header { | |
background-color: #BE6E28; | |
border: 1em solid #BE6E28; | |
width: 40em; | |
font-family: Helvetica,Arial,sans-serif; | |
} | |
.title { | |
font-size: 150%; | |
color: white; | |
} | |
.navbar { | |
color: white; | |
font-size: 120%; | |
} | |
.key { | |
margin-top: .3em; | |
color: #BE6E28; | |
} | |
.form { | |
background-color: #FFF8F1; | |
border: 1em solid #FFF8F1; | |
width: 40em | |
} | |
/* ]]> */--> | |
</style> | |
<script type="text/javascript">//<![CDATA[ | |
function sf(){document.f.s.focus();} | |
//]]></script> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> | |
</head> | |
<body onload=""> | |
<div class="header"><span class="title">WordNet Search - 3.1</span><div class="navbar"> - <a href="http://wordnet.princeton.edu">WordNet home page</a> - <a href="http://wordnet.princeton.edu/man/wngloss.7WN.html">Glossary</a> - <a href="help.pl">Help</a> | |
</div></div><div class="form"><form method="get" action="webwn" enctype="multipart/form-data" name="f">Word to search for: <input type="text" name="s" maxlength="500" /><input type="submit" name="sub" value="Search WordNet" /><input type="hidden" name="o2" value="" /><input type="hidden" name="o0" value="1" /><input type="hidden" name="o8" value="1" /><input type="hidden" name="o1" value="1" /><input type="hidden" name="o7" value="" /><input type="hidden" name="o5" value="" /><input type="hidden" name="o9" value="" /><input type="hidden" name="o6" value="" /><input type="hidden" name="o3" value="" /><input type="hidden" name="o4" value="" /><input type="hidden" name="h" value="" /></form> | |
<form method="get" action="webwn" enctype="multipart/form-data" name="change"> | |
<br>Display Options: <select name="c" > | |
<option selected="selected" value="-1">(Select option to change)</option> | |
<option value="0">Hide Example Sentences</option> | |
<option value="1">Hide Glosses</option> | |
<option value="2">Show Frequency Counts</option> | |
<option value="3">Show Database Locations</option> | |
<option value="4">Show Lexical File Info</option> | |
<option value="5">Show Lexical File Numbers</option> | |
<option value="6">Show Sense Keys</option> | |
<option value="7">Show Sense Numbers</option> | |
<option value="8">Show all</option> | |
<option value="9">Hide all</option> | |
</select> <input type="submit" name="sub" value="Change" /><input type="hidden" name="o2" value="" /><input type="hidden" name="o0" value="1" /><input type="hidden" name="o8" value="1" /><input type="hidden" name="o1" value="1" /><input type="hidden" name="o7" value="" /><input type="hidden" name="o5" value="" /><input type="hidden" name="o9" value="" /><input type="hidden" name="o6" value="" /><input type="hidden" name="o3" value="" /><input type="hidden" name="o4" value="" /><input type="hidden" name="i" value="-1" /><input type="hidden" name="h" value="" /><input type="hidden" name="s" value="" /></form> | |
</div> | |
</body> | |
</html> |