CINXE.COM
OneLook Dictionary Search and Thesaurus
<!DOCTYPE html> <html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Gabarito:wght@400..900&family=Montserrat:wght@200;400;500&display=swap" rel="stylesheet"> <meta property="og:image" content="https://onelook.com/img/onelook2.png" /> <meta property="og:image:width" content="261" /> <meta property="og:image:height" content="74" /> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-KCYRT3J03G"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-KCYRT3J03G'); </script> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"> <link rel="manifest" href="/manifest.json"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileImage" content="/mstile-144x144.png"> <meta name="theme-color" content="#ffffff"> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="/ol2.css?v=25"> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css" /> <title>OneLook Dictionary Search and Thesaurus</title> <meta name="verify-v1" content="sB0hHHVrwGNsQx2rlf03XszL/j2wus02u/deZpkKddw=" /> <script> function init() {document.form1.w.focus(); document.form1.w.select();} </SCRIPT> <STYLE> A:hover {text-decoration:bold; color:#FF0000;} A:active {text-decoration:bold; color:#FF0000;} </STYLE> </head> <body> <center> <br> <div class="ol_logo"> <a href="/?loc=lhp"> <div class="ol_logo_sunburst"> <svg id=logoray xmlns="http://www.w3.org/2000/svg" height="60px" viewBox="0 -1040 1040 1040" width="60px" fill="#f1cc39"> <path d="M450-810v-110h60v110h-60Zm0 770v-110h60v110h-60Zm360-410v-60h110v60H810Zm-770 0v-60h110v60H40Zm702-250-43-43 66-66 43 43-66 66ZM195-151l-43-43 66-66 43 43-66 66Zm570 0-66-66 43-43 66 66-43 43ZM218-700l-66-66 43-43 66 66-43 43Zm261.82 445Q386-255 320.5-320.68 255-386.35 255-480.18q0-93.82 65.68-159.32 65.67-65.5 159.5-65.5 93.82 0 159.32 65.68 65.5 65.67 65.5 159.5 0 93.82-65.68 159.32-65.67 65.5-159.5 65.5Zm.11-60Q549-315 597-362.93q48-47.94 48-117Q645-549 597.07-597q-47.94-48-117-48Q411-645 363-597.07q-48 47.94-48 117Q315-411 362.93-363q47.94 48 117 48Zm.07-165Z"/> <circle id=logosun cx="480" cy="-480" r="200" fill="#f1cc39"/> </div> <span class="ol_logo_text">OneLook</span></a></div> <div id="formset"> <div id="fb1"> <form name="form1" id="olform" method="GET" action="/"> <input id="olinput" type="text" name="w" autocapitalize="none" size="30" value=""> </form> </div> <div id="fb2"> <button type="button" id="btn1" class="btn btn-primary" onclick="ol(true);"><b>Definitions</b></button><br> <button type="button" id="btn2" class="btn btn-secondary" onclick="ol(false);">Thesaurus</button> </div> </div> <center> <p class=ol_introteaser> <strong>A wonderland of words.</strong><br> OneLook scans 16,965,772 entries in 805 dictionaries.<br> Use it to find <a href="/?w=steadfast">definitions</a>, <a href="/?w=steadfast&related=1">related words</a>, <a href="/?w=steadfast&mentions=1">quotes</a>, <a href="/?w=steadfast&verses=1">lyrics</a>, <a href="/?w=clay&colors=1">colors</a>, and more.<br><br> Play <a href="https://compoundyourjoy.com">CYJ</a>, <a href="/threepeat">Threepeat</a>, and <a href="/pandergram">Pandergram</a>, our new word games. </p> </center> <!-- <a href="https://www.onelook.com/?loc=hpd&w=cyj">Try our new daily word game, Compound Your Joy</a> --> <div class="thes-subjectindex"> <font size=4><b>How to search</b></font><br><br> <div class="ol-searchexamples"> <table> <tr> <td align=right><a href="/?w=bluebird" style="{text-decoration:none;}">bluebird</a></td> <td> </td> <td class="ec">Get definitions of <i>bluebird</i></td> </tr> <tr> <td align=right><a href="/?w=blue*" style="{text-decoration:none;}">blue*</a></td> <td> </td> <td class="ec">List words that start with <i>blue</i></td> </tr> <tr> <td align=right><a href="/?w=*bird" style="{text-decoration:none;}">*bird</a></td> <td> </td> <td class="ec">...that end with <i>bird</i></td> </tr> <tr> <td align=right><a href="/?w=bl%3F%3F%3F%3Frd" style="{text-decoration:none;}">bl????rd</a></td> <td> </td> <td class="ec">...that start with <i>bl</i>, end with <i>rd</i>, with 4 letters in between</td> </tr> <tr> <td align=right><a href="/thesaurus/?s=%2F%2Ffuljyo" style="{text-decoration:none;}">//fuljyo</a></td> <td> </td> <td class="ec">...that have the letters "fuljyo"</td> </tr> <tr> <td align=right><a href="/thesaurus/?s=%3F%3F%3F%3F%3F%2C%2Ay%2A&loc=wildcard6" style="{text-decoration:none;}">?????,*y*</a></td> <td> </td> <td class="ec">...that have 5 letters and contain a "y"</td> </tr> <tr> <td align=right><a href="/thesaurus/?s=bl*%3Asnow" style="{text-decoration:none;}">bl*:snow</a></td> <td> </td> <td class="ec">...that start with <i>bl</i> and have a meaning related to <i>snow</i></td> </tr> <tr> <td align=right><a href="/thesaurus/?s=snow" style="{text-decoration:none;}">:snow</a></td> <td> </td> <td class="ec">List words related to <i>snow</i></td> </tr> <tr> <td align=right><a href="/thesaurus/?s=*%3Awinter%20sport" style="{text-decoration:none;}">:winter sport</a></td> <td> </td> <td class="ec">...related to the concept <i>winter sport</i></td> </tr> <tr> <td align=right><a href="/?w=**winter**" style="{text-decoration:none;}">**winter**</a></td> <td> </td> <td class="ec">Phrases that contain the word <i>winter</i></td> </tr> <tr> <td align=right><a href="/?w=expand:nasa" style="{text-decoration:none;}">expand:nasa</a></td> <td> </td> <td class="ec">Phrases that spell out <i>n.a.s.a.</i></td> </tr> <tr><td colspan=2> <!-- — <a href="/wotd.shtml">Today's word</a> is <b><A HREF="/?w=asio&loc=wotd">asio</A> </b> --> </center> </td></tr></table> </div> <br> <font size=4><b>Pattern symbols</b> (<a target="_blank" href="/?c=faq#patterns">Help</a>, <a target=_ href="https://www.youtube.com/watch?v=a-HmvCyjrW0">Video</a>) </font><br><br> <nobr><b>?</b> any letter</nobr> <nobr><b>*</b> any number of letters</nobr> <nobr><b>#</b> consonant </nobr> <nobr><b>@</b> vowel </nobr> <br> <nobr><b>-abcd</b> disallow letters</nobr> <nobr><b>+abcd</b> restrict to letters</nobr> <nobr><b>//abcd//</b> unscramble </nobr> <nobr>pattern<b>:</b>meaning </nobr> <br> </font> </div> <div class="thes-subjectindex"> <center> <font size=4><b>Subject index</b> </font><br> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Positive%20qualities&subjectid=27">Positive qualities</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Negative%20qualities&subjectid=33">Negative qualities</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Negative%20feelings&subjectid=20">Negative feelings</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Change&subjectid=4">Change</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Actions&subjectid=34">Actions</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Activities&subjectid=36">Activities</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Tasks&subjectid=35">Tasks</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Recreation&subjectid=10">Recreation</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Tools&subjectid=13">Tools</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Society&subjectid=3">Society</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Social%20systems&subjectid=25">Social systems</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Philosophy&subjectid=24">Philosophy</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=The%20Elements&subjectid=12">The Elements</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Measurement&subjectid=15">Measurement</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Physical%20processes&subjectid=5">Physical processes</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Food&subjectid=7">Food</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Drink&subjectid=8">Drink</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Accessories&subjectid=11">Accessories</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Anatomy&subjectid=31">Anatomy</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Health&subjectid=30">Health</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Drugs&subjectid=19">Drugs</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Biochemistry&subjectid=23">Biochemistry</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Math%20and%20astronomy&subjectid=14">Math and astronomy</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Physics&subjectid=16">Physics</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Biology&subjectid=18">Biology</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Chemistry&subjectid=22">Chemistry</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Plants&subjectid=6">Plants</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Animals&subjectid=17">Animals</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Music&subjectid=2">Music</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Graphics%20and%20sound&subjectid=9">Graphics and sound</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Communication&subjectid=21">Communication</a></nobr></span> <br> <span class="thes-supercluster-span"><nobr><a href="/?subject=Languages%20and%20cultures&subjectid=29">Languages and cultures</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=History&subjectid=26">History</a></nobr></span> <span class="thes-supercluster-span"><nobr><a href="/?subject=Eastern%20cultures&subjectid=28">Eastern cultures</a></nobr></span> <br> </center> </div> <table width="100%" border=0 cellspacing=0> <tr><td align=center> <a href="/thesaurus/">Reverse Dictionary / Thesaurus</a> <a href="https://datamuse.com/">Datamuse</a> <a href="/games">Word games</a> <a href="https://onelook.com/spruce">Spruce</a> <a href="https://onelook.com/about.shtml#feedback">Feedback</a> <!-- <a href="https://onelook.com/about.shtml#privacy">Privacy</a> --> <a href="#" class="darkModeToggle">Dark mode</a> <a href="/about.shtml">Help</a></center> </td></tr></table> <br> <br> <link rel="stylesheet" href="/cyj.min.css?6"> <script src="/cyj.min.js?3"></script> <style> #CONTAINER { margin: auto; border: 2px solid #ccf; border-radius: 10px; box-shadow: 3px 3px 3px #ddf; display: flex; width: fit-content; margin-bottom: 20px; } </style> <div id="CONTAINER"></div> <script> const get_call_to_action_msg = () => { const is_daily = 1; const msgs = [ 'Can you rearrange the words into a chain of 2-word phrases' ]; // return (1 ? "Daily game: " : "") + msgs[Math.floor(Math.random() * msgs.length)]; return msgs[Math.floor(Math.random() * msgs.length)]; } const init_cyj_game = () => { const add_tracker = (container, action, msg) => { const is_daily = 1; const rand = Math.random(); const img = document.createElement('img'); img.style.display = 'none'; img.src = `img/0.gif?x=cyj6&rand=${rand}&w=${is_daily}&action=${action}&msg=${msg}`; container.append(img); } const container = document.querySelector('#CONTAINER'); const is_daily = 1; const { starting_board, compound_info, min_moves } = {"puzzle_id": 2226358571759113389, "starting_board": ["sciatic", "death", "cell", "waiting", "roll", "period", "nerve", "call", "pain"], "compound_info": [{"compound": ["sciatic", "nerve"], "name": "sciatic nerve", "connection_type": "C", "description": "(neuroanatomy) A large nerve that starts in the lower back and runs through the buttock and down the lower limb."}, {"compound": ["nerve", "cell"], "name": "nerve cell", "connection_type": "C", "description": "(cytology) A cell of the nervous system which conducts nerve impulses; a neuron."}, {"compound": ["cell", "death"], "name": "cell death", "connection_type": "C", "description": "(biology) The breakdown of the structure of a cell after completion of a number of cell divisions."}, {"compound": ["death", "roll"], "name": "death roll", "connection_type": "C", "description": "(nautical) In a keel boat, the act of broaching to windward, putting the spinnaker pole into the water and causing a crash-gybe of the boom and mainsail, which sweep across the deck and plunge down into the water."}, {"compound": ["roll", "call"], "name": "roll call", "connection_type": "C", "description": "The reading aloud of a list of names, and subsequent responses, in order to determine who is present or absent."}, {"compound": ["call", "waiting"], "name": "call waiting", "connection_type": "C", "description": "A telephone service allowing a subscriber to accept a second incoming call by placing an ongoing call on hold, and to switch between such calls."}, {"compound": ["waiting", "period"], "name": "waiting period", "connection_type": "C", "description": "A certain amount of time of required delay before some other action is allowed."}, {"compound": ["period", "pain"], "name": "period pain", "connection_type": "C", "description": "Pain felt in the abdomen during menstruation."}], "difficulty": 62.83, "winning_board": ["sciatic", "nerve", "cell", "death", "roll", "call", "waiting", "period", "pain"], "min_moves": 4} ; const call_to_action_msg = get_call_to_action_msg().replace("[X]", starting_board[0]).replace("[Y]", starting_board[starting_board.length - 1]); /* add_tracker(container, 'render', call_to_action_msg); */ let helpstr = 'Pick up and drag the words to rearrange them into a chain in which every adjacent pair of words is a familiar two-word phrase like "hot dog". The pink words are the start and end of the chain and cannot be moved. When you have finished linking the words we\'ll show you the definitions of the phrases.'; if ("20250310".startsWith("def_")) helpstr = 'Pick up and drag the words to rearrange them into a valid definition for the word on the left.'; else if ("20250310".startsWith("proverb_")) helpstr = 'Pick up and drag the words to rearrange them into a grammatical proverb.'; helpstr = helpstr + ' If you want an extra challenge, try to make the chain in no more than ' + min_moves.toString() + ' moves.'; CompoundYourJoy.FromStandard(20250309, container, starting_board, compound_info, { help: helpstr, call_to_action: call_to_action_msg, play_again: "https://onelook.com/?loc=rd&w=cyj&gameid=20250310" }, { on_first_interaction: () => { add_tracker(container, 'first_interaction', ''); }, on_win: (num_moves, min_moves, duration) => { add_tracker(container, 'win', num_moves.toString() + '_' + min_moves.toString() + '_' + duration.toString()); }, on_share: () => { add_tracker(container, 'share', ''); }, on_definitions: () => { add_tracker(container, 'definitions', ''); }, }, min_moves ); } init_cyj_game(); </script> <style> /* Basic reset */ /* Container for the three boxes */ .games-container { font-family: "Gabarito", sans-serif; display: flex; /* Enable flex layout */ flex-wrap: wrap; /* Allow wrapping on smaller screens */ justify-content: center; /* Center the boxes horizontally */ gap: 20px; /* Space between items */ max-width: 1200px; margin: 0 auto; /* Center container in the page */ } /* Individual game box styling */ .game-box { flex: 1 1 200px; max-width: 200px; background: linear-gradient(135deg, lightblue, #1c39bb); border-radius: 8px; padding: 20px; color: #fff; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; flex-direction: column; justify-content: space-between; } .game-box h2 { margin-bottom: 10px; font-size: 1.5rem; } .game-box p { margin-bottom: 20px; line-height: 1.4; } /* Button styling */ .cta-button { display: inline-block; background-color: #fff; color: #ff9800; text-decoration: none; font-weight: bold; padding: 10px 20px; border-radius: 4px; transition: background-color 0.3s, color 0.3s; } .cta-button:hover { background-color: #ff9800; color: #fff; } /* Responsive adjustments for smaller screens */ @media (max-width: 600px) { .game-box { max-width: 100%; /* Boxes will stretch to full width on small screens */ } } </style> <div class="games-container"> <!-- Threepeat Box --> <div class="game-box"> <h2>Threepeat</h2> <p> Find common ground </p> <a href="/threepeat" class="cta-button">Play Now</a> </div> <!-- Compound Your Joy Box --> <div class="game-box"> <h2>Compound Your Joy</h2> <p> Find connection </p> <a href="/cyj" class="cta-button">Play Now</a> </div> <!-- Pandergram Box --> <div class="game-box"> <h3>Pandergram</h2> <p> Make alphabet soup </p> <a href="/pandergram" class="cta-button">Play Now</a> </div> </div> </center> <br><center>Today's secret word is 5 letters and means <i>"Resource owned, economic value held."</i> Can you find it?<br><br></center> <br> </center> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script> function highlightWildcard(item, pattern) { if (!pattern.endsWith('*')) { pattern += '*'; } const segments = pattern.split('*'); function parseSegment(segment) { return segment.split(''); } function buildSegmentRegex(tokens) { const groupPatterns = tokens.map(ch => { if (ch === '?') { return '([A-Za-z ])'; // capturing group for 1 letter/space } else { // Escape any regex special chars in case the pattern has them const escaped = ch.replace(/[.^$|\\()[\]{}*+?]/g, '\\$&'); return '(' + escaped + ')'; } }); return new RegExp('^' + groupPatterns.join(''), 'i') } function bold(text) { return `<span class="autocomplete_bolded">${text}</span>`; } function buildInvertedSegmentMatch(tokens, matchArray) { let out = ''; for (let i = 0; i < tokens.length; i++) { const token = tokens[i]; const actualChar = matchArray[i + 1]; // what we matched in the item if (token === '?') { out += bold(actualChar); } else { out += actualChar; } } return out; } let resultHTML = ''; let currentIndex = 0; for (const seg of segments) { if (!seg) { continue; } const tokens = parseSegment(seg); const segmentRegex = buildSegmentRegex(tokens); let matchPos = -1; let matchLength = 0; let matchArray = null; for (let startPos = currentIndex; startPos <= item.length; startPos++) { const substring = item.slice(startPos); const m = segmentRegex.exec(substring); if (m) { matchPos = startPos; matchLength = m[0].length; matchArray = m; break; } } if (matchPos === -1) { break; } const gapText = item.slice(currentIndex, matchPos); if (gapText) { resultHTML += bold(gapText); } const matchedSegmentHTML = buildInvertedSegmentMatch(tokens, matchArray); resultHTML += matchedSegmentHTML; currentIndex = matchPos + matchLength; } const leftover = item.slice(currentIndex); if (leftover) { resultHTML += bold(leftover); } return resultHTML; } function ol(isForward, mode) { var x = $( "#olinput" ).val(); var url = "/"; if (isForward) { url = "/?w=" + encodeURIComponent(x); } else { url = "/thesaurus/"; if (x !== "") { url += "?s=" + encodeURIComponent(x); } } if (mode) { url += "&" + mode + "=1"; } if (url !== "/") { window.location.replace(url); } } $(function() { last_req = ""; const body = document.body; if (typeof(Storage) !== "undefined") { const savedTheme = localStorage.getItem('theme'); if (savedTheme) { body.className = savedTheme; } else { body.className = 'light-theme'; } } $(".darkModeToggle").click(() => { body.classList.toggle('dark-theme'); body.classList.toggle('light-theme'); if (typeof(Storage) !== "undefined") { $("#olinput").append('<img src="/img/0.gif?q=hometheme_' + body.className + '">'); localStorage.setItem('theme', body.className); } }); $( "#olinput" ).autocomplete( { minLength: 3, delay: 100, open: function(event, ui) { $('.ui-autocomplete').off('menufocus hover mouseenter mouseover'); }, select: function(event, ui) { if (ui.item.value.match("Symbols:")) { ui.item.value = $( "#thesinput").val(); return; } $('<input>').attr({ type: 'hidden', name: 'loc', value: 'home_ac_' + last_req }).appendTo('#olform'); $( "#olinput" ).val(ui.item.value); $( "#olform" ).submit(); }, source: function( request, response ) { var res = request.term.split(":"); var pattern = res[0]; var url; if (res.length > 1) { url = '//www.onelook.com/api/words?v=ol_gte2&md=d&max=10&k=ol_clue&sp=' + encodeURIComponent(res[0]) + '&ml=' + encodeURIComponent(res[1]); } else { url = '//www.onelook.com/api/sug?v=ol_gte2&k=ol_home&s=' + encodeURIComponent(request.term.replace(/[:].*/,'')); } $.ajax({ dataType: "json", type: 'GET', url: url, success: function(data) { data.push({"word": "Symbols: ? (match a letter), * (match many), // (unscramble)"}); response($.map(data, function(item) { item.word = item.word.replace(/[+]/g, ' '); var label = item.word; var definition = ""; if (item.defs && item.defs.length > 0) { var parts = item.defs[0].split("\t"); if (parts.length > 1) { definition = parts[1].trim().replace(/[_.]/g, ''); definition = definition.replace(/^:/, "→ "); // right arrow for descriptives definition = definition.length > 60 ? definition.slice(0, 60) + "..." : definition; } } return { label: label, // label is shown in the dropdown menu value: item.word, // value goes into the input box on selection highlight: item.word === pattern ? ("<strong>" + pattern + "</strong>") : highlightWildcard(item.word, pattern), defs: definition, is_match: (item.word.toLowerCase() === pattern.toLowerCase()) }; })); } }); }}) .data("ui-autocomplete")._renderItem = function(ul, item) { var $li = $("<li>").appendTo(ul); var $word = $("<span>").html(item.highlight); // Definition on the right (in gray), but only if we have one if (item.defs) { var $def = $("<span class='definition'>").text(item.defs); if (item.is_match) { $def = $("<span class='definition definition_match'>").text(item.defs); } $li.append($word).append($def); } else { $li.append($word); } return $li; }; ; init(); }); </script> <br><br><br><br> </body></html>