Author | Post | |||
unknown user |
Does anyone here know a good website / program for word pattern searches? I mean, by example, when I enter: abbcd I should get: goosh leesh peeps ollie etc. I have a site like this in Dutch, but that isn't really helpful most of the time. I've been searching alot on google, but don't know the right terms to search for... I figured maybe one of you has such a site inside his favorites |
|||
03.08.2007 09:24:10 |
|
|||
moose |
well, I have one, but I think there was a challenge where you were expected to find such a website ... or was it another challenge site? Can I answer to this question? As a little help for you: 1. google is your friend 2. such things are called 'anagrams' |
|||
03.08.2007 09:43:45 |
|
|||
alt3rn4tiv3 |
anagrams? it's just a substitution. a tool like scbsolvr will do the trick. |
|||
03.08.2007 09:54:02 |
|
|||
paipai |
try this. http://wordsmith.org/anagram/ http://www.onelook.com/ |
|||
03.08.2007 10:18:00 |
|
|||
Phas(retired) |
Scortile: I think some people didn't understand your question. As alt3rn4tiv3 said, scbsolvr could do it, but it doesn't match the word against a dictionary, it uses n-gram frequencies and for short texts it isn't useful . The best way could be coding your own program, I did that for solving some challenges. You only need to give a pattern and a dictionary file and make the program print the words that match the pattern. Maybe there's any website that implements this, but i don't know. If you find one, please let us know. |
|||
03.08.2007 11:29:05 |
|
|||
unknown user |
Wow, what alot of reactions in such a short time Kinda funny alt3rn4tiv3 and paipai are that good in cryptography (they both solved alot I mean), but can't decipher my question I meant what Phas said, and yes, I will code a program myself. It's just, it takes some more time when I code.. There are always lots of misstakes in my coding and the layout will blind you of uglyness. Anyways, since I'm convinced now that's the only way, I will. Thx for your help! |
|||
03.08.2007 13:16:05 |
|
|||
Towley |
Quote from Scortile: Does anyone here know a good website / program for word pattern searches? I mean, by example, when I enter: abbcd I should get: goosh leesh peeps ollie etc. I guess the pattern ABBCD should not match peeps. peeps should match ABBAC. I also thought about writing such a programm. |
|||
03.08.2007 14:40:34 |
|
|||
unknown user |
should be easy enough with a wordlist, and some bash i'm no regex master, so i'll just use other bash functionality to script this pattern="abba" while read word; do [[ "${#pattern}" = "${#word}" ]] || continue; for i in $(seq 0 $((${#word})) ); do char=${word:$i:1} patternchar=${pattern:$i:1} for j in $(seq 0 $((${#word})) ); do [[ "${pattern:$j:1}" = "$patternchar" ]] && [[ "${word:$j:1}" != "$char" ]] && continue 3 done done echo $word done < wordlistfilename now i didn't test this so it's probably wrong patches welcome edit: heh i tested it and it works $ ./filter.sh abbcd < words.txt abbey abbot Accra added adder Addis affix ......... peeps .... and if you want to follow the opinion of gizmore you have to add [[ "${pattern:$j:1}" != "$patternchar" ]] && [[ "${word:$j:1}" = "$char" ]] && continue 3 in the inner loop |
|||
03.08.2007 14:52:59 |
|
|||
alt3rn4tiv3 | ||||
03.08.2007 14:55:37 |
|
|||
moose |
Quote: anagrams? it's just a substitution. a tool like scbsolvr will do the trick. wooops ... sorry ... reading helps a lot |
|||
03.08.2007 19:41:48 |
|