Enter your search terms
Submit search form
my-Tool.com: Word Domain - Generates and combines words you can use for various purposes such as domain name. - Word Picker
IP Address
MaximaPHP
Regexp Tester
Mathematics
String and Text
Word Domain
Games
Code Tester
Internet Codes
Networking
Date and Time
Be Wise Bitwise
Ranqueen
Q & A
About me
Forum
Open Source Facts
AdManner Free
Classified Ads
Indonesian
Japanese
Domain Verifier
Random Word
Domain Combiner
Word Picker
Word Picker
Picks up words from dictionary and gives some randomization.
Length
:
Vowel number
:
percent
Spelling
:
English
British
British (z)
American
Canadian
Special
Variant 0
Variant 1
Variant 2
Classification
:
Words
Proper names
Upper
Abbreviations
Hacker
Contractions
Count
:
Columns
:
Most of the visitors who used this tool also used
カレンダー
(4.8%),
EditArea
(4.8%),
詳細
(4.8%)
Source code of this tool is:
<?php /****************************************************************** * * WordPicker, Picks up words from dictionary and gives some randomization. * Copyright (C) 2006, Bowo Prasetyo * * http://www.my-tool.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation below, * * http://www.gnu.org/licenses/gpl.html#TOC1 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * *****************************************************************/ unset($length); if (isset($_POST['length'])) $length = trim($_POST['length']); $vowels = 30; if (isset($_POST['vowels'])) $vowels = trim($_POST['vowels']); $percent = 'yes'; if (isset($_POST['vowels'])) { if (isset($_POST['percent'])) $percent = 'yes'; else $percent = 'no'; } $spelling = array(); if (isset($_POST['spl'])) $spelling = $_POST['spl']; if(count($spelling)==0) array_push($spelling, 'english'); $class = array(); if (isset($_POST['cls'])) $class = $_POST['cls']; if(count($class)==0) array_push($class, 'words'); $count = 99; if (isset($_POST['count'])) $count = trim($_POST['count']); $columns = 3; if (isset($_POST['columns'])) $columns = trim($_POST['columns']); $randomize = 10; if (isset($_POST['randomize'])) $randomize = trim($_POST['randomize']); ?> <script type="text/javascript"> google_ad_client = "pub-6269511881695171";ngoogle_alternate_ad_url = "http://www.my-tool.com/a120_90.php"; google_ad_width = 728; google_ad_height = 15; google_ad_format = "728x15_0ads_al_s"; google_ad_channel = ""; google_color_border = "FFFFFF"; google_color_bg = "FFFFFF"; google_color_link = "A9501B"; google_color_text = "000000"; google_color_url = "008000"; </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script><br /><br /> <script src="/randomizeword.js"> </script> <form name="my_tool_form" method="POST" action=""> <table border=0> <tr><td>Length</td><td>:</td><td><input type="text" size="3" maxlength="2" name="length" value="<?php echo $length ?>"></td></tr> <tr><td>Vowel number</td><td>:</td><td><input type="text" size="3" maxlength="2" name="vowels" value="<?php echo $vowels ?>"> <input type="checkbox" name="percent" value="yes" <?php echo $percent=='yes'?'checked':'' ?>> percent</td></tr> <tr><td>Spelling</td><td>:</td><td> <table><tr><td> <input type="checkbox" name="spl[]" value="english" <?php echo in_array('english',$spelling)?'checked':'' ?>> English</td><td> <input type="checkbox" name="spl[]" value="british" <?php echo in_array('british',$spelling)?'checked':'' ?>> British</td><td> <input type="checkbox" name="spl[]" value="british_z" <?php echo in_array('british_z',$spelling)?'checked':'' ?>> British (z) </td></tr><tr><td> <input type="checkbox" name="spl[]" value="american" <?php echo in_array('american',$spelling)?'checked':'' ?>> American</td><td> <input type="checkbox" name="spl[]" value="canadian" <?php echo in_array('canadian',$spelling)?'checked':'' ?>> Canadian</td><td> <input type="checkbox" name="spl[]" value="special" <?php echo in_array('special',$spelling)?'checked':'' ?>> Special </td></tr><tr><td> <input type="checkbox" name="spl[]" value="variant_0" <?php echo in_array('variant_0',$spelling)?'checked':'' ?>> Variant 0</td><td> <input type="checkbox" name="spl[]" value="variant_1" <?php echo in_array('variant_1',$spelling)?'checked':'' ?>> Variant 1</td><td> <input type="checkbox" name="spl[]" value="variant_2" <?php echo in_array('variant_2',$spelling)?'checked':'' ?>> Variant 2 </td></tr></table> </td></tr> <tr><td>Classification</td><td>:</td><td> <table><tr><td> <input type="checkbox" name="cls[]" value="words" <?php echo in_array('words',$class)?'checked':'' ?>> Words</td><td> <input type="checkbox" name="cls[]" value="proper_names" <?php echo in_array('proper_names',$class)?'checked':'' ?>> Proper names</td><td> <input type="checkbox" name="cls[]" value="upper" <?php echo in_array('upper',$class)?'checked':'' ?>> Upper </td></tr><tr><td> <input type="checkbox" name="cls[]" value="abbreviations" <?php echo in_array('abbreviations',$class)?'checked':'' ?>> Abbreviations</td><td> <input type="checkbox" name="cls[]" value="hacker" <?php echo in_array('hacker',$class)?'checked':'' ?>> Hacker</td><td> <input type="checkbox" name="cls[]" value="contractions" <?php echo in_array('contractions',$class)?'checked':'' ?>> Contractions </td></tr></table> </td></tr> <tr><td colspan="3"> <table> <tr><td>Count</td><td>:</td><td><input type="text" size="3" maxlength="3" name="count" value="<?php echo $count ?>"></td><td>Columns</td><td>:</td><td><input type="text" size="3" maxlength="3" name="columns" value="<?php echo $columns ?>"></td></tr> </table> </td></tr> </table> <input type="submit" name="submit" value="Pick up words"> </form> <?php if ($_POST[submit]=='Pick up words') { $spell_cond = ''; foreach ($spelling as $value) $spell_cond .= " OR spelling = '$value'"; $spell_cond = '('.substr($spell_cond,4).')'; $class_cond = ''; foreach ($class as $value) $class_cond .= " OR class = '$value'"; $class_cond = '('.substr($class_cond,4).')'; /* Needs: SCOWL word list can be obtained from <a href="http://wordlist.sourceforge.net/">Kevin's Word List Page</a> */ if (isset($length) && $length!='' && isset($vowels) && $vowels!='' && $percent=='yes') { $result = mysql_query("SELECT word, vowels FROM words WHERE len=$length AND vowels=".round($length*$vowels/100.0)." AND $spell_cond AND $class_cond ORDER BY random;"); } else if (isset($length) && $length!='' && isset($vowels) && $vowels!='' && $percent=='no') { $result = mysql_query("SELECT word, vowels FROM words WHERE len=$length AND vowels=$vowels AND $spell_cond AND $class_cond ORDER BY random;"); } else if (isset($vowels) && $vowels!='' && $percent=='yes') { $result = mysql_query("SELECT word, vowels FROM words WHERE vowels=ROUND(len*$vowels/100.0) AND $spell_cond AND $class_cond ORDER BY random;"); } else if (isset($vowels) && $vowels!='' && $percent=='no') { $result = mysql_query("SELECT word, vowels FROM words WHERE vowels=$vowels) AND $spell_cond AND $class_cond ORDER BY random;"); } else if (isset($length) && $length!='') { $result = mysql_query("SELECT word, vowels FROM words WHERE len=$length AND $spell_cond AND $class_cond ORDER BY random;"); } if (!$result) { die('Invalid query: '.mysql_error()); } $min = 0; $max = mysql_num_rows($result) - $count; if($max > 0) { mysql_data_seek($result, mt_rand($min, $max)); } $i = 0; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $i++; if ($i%$columns===0) $words .= $line['word']."\n"; else $words .= $line['word']."\t"; if ($i>=$count) break; } ?> <form name="my_tool_form_2" method="POST" action=""> <table border=0> <tr><td colspan="3"><textarea name="words" rows="20" cols="60" wrap="off"><?php echo $words ?></textarea></td></tr> <tr><td>Randomize</td><td>:</td><td><input type="text" size="3" maxlength="2" name="randomize" value="<?php echo $randomize ?>"> percent</td></tr> </table> <input type="button" value="Randomize" onClick="loopWords(this.form.words.value, this.form.randomize.value, window.document.my_tool_form.columns.value)"> </form> <form name="my_tool_form_3" method="POST" action="/word-domain/domain-combiner/"> <textarea name="result" rows="20" cols="60" wrap="off" style="border:none" readonly></textarea><br> <input type="submit" value="Bring to Domain Combiner"> </form> <?php mysql_close($link); } ?>
Source code of 'randomizeword.js' is:
<!-- hide /****************************************************************** * * randomizeword.js, Gives some randomization on words by percentage. * Copyright (C) 2006, Bowo Prasetyo * * http://www.my-tool.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation below, * * http://www.gnu.org/licenses/gpl.html#TOC1 * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301, USA. * *****************************************************************/ var rans; var consa = new Array('b', 'c', 'd', 'f', 'g', 'h', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'v', 'w', 'x', 'y', 'z'); var consb = new Array('l', 'r'); var vowsa = new Array('a', 'i', 'u', 'e', 'o', 'y'); function inArray(needle, haystack) { var i; var result = false; for(i=0; i<haystack.length; i++) { if (haystack[i]==needle) { result = true; break; } } return result; } function randomizeWord(word) { var i, pos, result = '', last = ''; pos = new Array(); for (i=0; i<rans; i++) pos[Math.floor(Math.random()*word.length)] = true; for (i=0; i<word.length; i++) { if (pos[i]==undefined) result += word.charAt(i); else { if ((word.charAt(i)=='h' || word.charAt(i)=='y' || word.charAt(i)=='l' || word.charAt(i)=='r') && (last==='' || inArray(last, vowsa))) result += consa[Math.floor(Math.random()*21)]; else if (word.charAt(i)=='h' || word.charAt(i)=="'") result += word.charAt(i); else if (inArray(word.charAt(i), vowsa)) result += vowsa[Math.floor(Math.random()*6)]; else if (inArray(word.charAt(i), consb)) result += consb[Math.floor(Math.random()*2)]; else result += consa[Math.floor(Math.random()*21)]; } last = word.charAt(i); } return result; } function loopWords(wrd, rand, columns) { var i, len, word, result = ''; var words = wrd.split(/[\t\r\n]+/); if (words[0]==='') words = new Array(); for (i=0; i<words.length; i++) { len = words[i].length; rans = Math.round(len*rand/100.0); if (rans>0) word = randomizeWord(words[i]); else word = words[i]; if ((i+1)%columns===0) result += word + "\n"; else result += word + "\t"; } window.document.my_tool_form_3.result.value = result; } // unhide -->
SCOWL word list can be obtained from
Kevin's Word List Page
©2006 my-Tool.com