Request: word list(s) |
Author: |
Message: |
SmokingCookie
Senior Member
Posts: 815 Reputation: 15
30 / /
Joined: Jul 2007
|
O.P. Request: word list(s)
Hi folks,
I know that there are plenty of word lists on the internet, but I'd like to see your fantasy
What I'd like to ask you is: think of as many words as you can, no matter what language, put 'em in a text file and upload the list.
One small point about the language thingy: please give the text file the name of the language's ISO 639-1 code, that is "en.txt" for English, "nl.txt" for Dutch etc.
You can find the ISO codes here in the first column.
Thanks in advance
This post was edited on 07-06-2009 at 02:40 PM by SmokingCookie.
|
|
07-06-2009 02:37 PM |
|
|
Menthix
forum admin
Posts: 5537 Reputation: 102
40 / /
Joined: Mar 2002
|
RE: Request: word list(s)
Just scrape Urban Dictionary for things you won't find on normal lists.
|
|
07-06-2009 02:44 PM |
|
|
SmokingCookie
Senior Member
Posts: 815 Reputation: 15
30 / /
Joined: Jul 2007
|
O.P. RE: Request: word list(s)
I've got plenty of English words already, but I'm also looking for words in other languages..
Nice list though
|
|
07-06-2009 02:47 PM |
|
|
djdannyp
Elite Member
Danny <3 Sarah
Posts: 3546 Reputation: 31
38 / /
Joined: Mar 2006
|
RE: Request: word list(s)
What is the purpose of this list?
There are over 1,000,000 words in the English language (and that's not including slang & depreciated words)
Might help to know what its purpose was
|
|
07-06-2009 02:50 PM |
|
|
SmokingCookie
Senior Member
Posts: 815 Reputation: 15
30 / /
Joined: Jul 2007
|
O.P. RE: RE: Request: word list(s)
Attachment: Anagramsolver.jpg (24.58 KB)
This file has been downloaded 333 time(s).
This post was edited on 07-06-2009 at 02:53 PM by SmokingCookie.
|
|
07-06-2009 02:52 PM |
|
|
djdannyp
Elite Member
Danny <3 Sarah
Posts: 3546 Reputation: 31
38 / /
Joined: Mar 2006
|
RE: Request: word list(s)
Fair enough.....but FYI:
a) anagramised isn't a word
b) an anagram has to make sense, not just be the letters rearranged into a nonsense word, eg: orchestra = carthorse
|
|
07-07-2009 06:11 AM |
|
|
Jarrod
Veteran Member
woot simpson
Posts: 1304 Reputation: 20
– / /
Joined: Sep 2006
|
RE: Request: word list(s)
there is a difference between jumbling and anagraming
the other day i wrote some python to solve the 9 letter word from the target in the SMH
you can also use a similar principle to find real anagrams
python code: from __future__ import with_statement
def ret_words(letter,words):
return [item for item in words if letter in item]
ana=raw_input("jumble: ")
with open("words-english.dic",'r') as dic:
x = set([item for item in [line.strip("\r\n") for line in dic.readlines()] if len(item)==len(ana)])#this only targets words of the right length
a = list(ana)
while a:#this targets words containing the same characters
x = ret_words(a.pop(),x)
a=sorted(ana)
for item in x:#this matches letter patterns to check if it is in fact an anagram
if a == sorted(list(item)):
print item
####################that was the conceptual python
##this is the engineered python
i=raw_input('j: ')
#now the line above and either of the following lines
for item in filter((lambda x: sorted(x) == sorted(i)),[ line.strip("\r\n") for line in open("words-english.dic","r").readlines() if len(line.strip('\r\n'))==len(i)]):print item
#the other solution
for item in [item for item in[line.strip("\r\n") for line in open("words-english.dic","r").readlines() if len(line.strip('\r\n'))==len(i)] if sorted(item)==sorted(i)]:print item
using those filtering principles you should be able to write something to produce anagrams, but if you are trying to jumble words, you could use the code I wrote to generate test cases for my code above python code: import random
def shuffled(x):
random.shuffle(x)
return x
print "".join(shuffled(list(raw_input("String to jumble: "))))
|
|
07-07-2009 06:32 AM |
|
|
SmokingCookie
Senior Member
Posts: 815 Reputation: 15
30 / /
Joined: Jul 2007
|
O.P. RE: RE: Request: word list(s)
quote: Originally posted by djdannyp
Fair enough.....but FYI:
a) anagramised isn't a word
b) an anagram has to make sense, not just be the letters rearranged into a nonsense word, eg: orchestra = carthorse
b) I know, I'm still working on the algorithm
a) I'll change it
|
|
07-07-2009 08:21 AM |
|
|
Jarrod
Veteran Member
woot simpson
Posts: 1304 Reputation: 20
– / /
Joined: Sep 2006
|
RE: Request: word list(s)
quote: Originally posted by SmokingCookie
I'm still working on the algorithm
my code is just what you need if you are looking at one word anagrams
it will not do longer ones with spaces and if your writing it in Jscript you might need to translate it. for example
<in> listen
<out>>enlist
<out>>listen
<out>>silent
<out>>tinsel
|
|
07-07-2009 08:38 AM |
|
|
SmokingCookie
Senior Member
Posts: 815 Reputation: 15
30 / /
Joined: Jul 2007
|
O.P. RE: Request: word list(s)
The "if" part of your first sentence is the problem. I'm trying to have it solve multi-word anagrams
|
|
07-07-2009 08:41 AM |
|
|
|