Anagram program ?

J

John Fitzsimons

I have a few of the anagram programs installed that we have mentioned
here BUT none of them ;

(A) Allow a cut and paste of the results.

AND

(B) Do all the words, of all lengths, available from a word like
troxeertv

A bonus would be able to ;

(1 ) sort the results so that only those with an "x" in could be found

and/or

(2) sort the results so that only those with an "x" in eg. the third
letter could be found.

and/or

(3) sort the results by word length.

Can anyone offer any possibilities please ?


Regards, John.
 
H

Han

Hi John,
Can anyone offer any possibilities please ?

Can't help with a standalone program and I'm sure you've already come
across this page anyway, but in case you haven't Andy's Anagram Solver at
http://www.ssynth.co.uk/~gay/anagott.html is an excellent website.

Possibly filtering the results from that page with some other software may
achieve what you need if you can't find something better....

Cheers
 
A

Alan

John said:
I have a few of the anagram programs installed that we have mentioned
here BUT none of them ;

(A) Allow a cut and paste of the results.

AND

(B) Do all the words, of all lengths, available from a word like
troxeertv

A bonus would be able to ;

(1 ) sort the results so that only those with an "x" in could be found

and/or

(2) sort the results so that only those with an "x" in eg. the third
letter could be found.

and/or

(3) sort the results by word length.

Can anyone offer any possibilities please ?

I think that TEA for DOS will satisfy most, if not all of these needs.
See the "Sorting Word Lists - How?" thread. As an example:

tea -c .........*;sportscaster

lists all the words of 9 letters or more that can be
made up of the letters in SPORTSCASTER:

assertors assorters attercops
prostates prostrate protracts
recaptors rest stops retroacts
Sarcoptes sectators spectator
sports-car prostrates spectators
sports-cars sportscast sportscaster

I imagine tea -c *;sportscaster will list all words of *any* length that
can be made from these letters.

tea -c ..a....;easting

lists the anagrams of EASTING that also match the
template --A----:

seating teasing

I'm guessing that tea -c ..a*;easting would give the same results of 3
or more letters. tea -c *a*;easting will give only those (of any length)
containing an "a".

I think it will satisfy your needs here. Results sorted by word length?
Not sure - I think it defaults to that, in columns *across* the screen
in the UI, but don't know how it comes out in a text file output.
Copy/paste is from a DOSbox of course, but you can redirect results to
file. It can be run from UI or commandline.
 
F

Fred

John Fitzsimons said:
I have a few of the anagram programs installed that we have mentioned
here BUT none of them ;

(A) Allow a cut and paste of the results.

AND

(B) Do all the words, of all lengths, available from a word like
troxeertv

A bonus would be able to ;

(1 ) sort the results so that only those with an "x" in could be found

and/or

(2) sort the results so that only those with an "x" in eg. the third
letter could be found.

and/or

(3) sort the results by word length.

Can anyone offer any possibilities please ?


Regards, John.


Try xword2 !
I'm given details below and I hope the link works!
Fred

This program (XWord2) is Copyright of G.McKenzie
([email protected]). It is released as Freeware and
may be freely distributed and used as long as no charge is made for
the program or its distribution.

The dictionary data is also Freeeware but it has its own
distribution requirements - see below.

To keep track of usage it would be nice if you could email
me with comments, encouragement or suggestions to:
(e-mail address removed)

The latest version of XWord is available at:
http://www.geocities.com/g.mckenzie/XWord2/xword2.htm

The program requires at least a 100 MHz 486 class machine to
run at a satisfactory speed.
 
J

John Fitzsimons

John Fitzsimons wrote:

I think that TEA for DOS will satisfy most, if not all of these needs.

< snip >

I suspected as much. I thought that I would see if there was a GUI
option before resorting to DOS.

Thanks for the examples. If I use Tea then they will be a big help in
my getting things done. :)

Regards, John.
 
J

John Fitzsimons

Try xword2 !
I'm given details below and I hope the link works!
Fred
This program (XWord2) is Copyright of G.McKenzie
([email protected]). It is released as Freeware

< snip >

Thanks, but if I put in a word like "extrovert" it does NOT give me
all the words that can be derived from that. It says "1" hit when
there are obviously more eg. "tree", "vote" etc.

Regards, John.
 
J

John Fitzsimons

Can't help with a standalone program and I'm sure you've already come
across this page anyway, but in case you haven't Andy's Anagram Solver at
http://www.ssynth.co.uk/~gay/anagott.html is an excellent website.
Possibly filtering the results from that page with some other software may
achieve what you need if you can't find something better....

Thank you, and n e a d. Not what I was after, but interesting pages.
Couldn't quite see how they would do a list of all single words that
can be made from eg. "extrovert" but I am obviously missing something.
In my original question and/or on those pages.

Regards, John.
 
A

Alan

John said:
< snip >

I suspected as much. I thought that I would see if there was a GUI
option before resorting to DOS.

Thanks for the examples. If I use Tea then they will be a big help in
my getting things done. :)

Just an afterthought. Since TEA can be used in commandline mode, its
output (file) might be able to be incorporated into a Windows GUI by
using one of the scripting-type programs often mentioned here. I don't
have much knowledge of these, but some of the aficionados of things like
AutoIt might be able to come up with a solution.

Still, I think you'll like TEA :)
 
A

Adrian Carter

John Fitzsimons wrote
I have a few of the anagram programs installed that we have mentioned
here BUT none of them ;

(A) Allow a cut and paste of the results.

AND

(B) Do all the words, of all lengths, available from a word like
troxeertv

..... snipped

Have you tried Anagram Master? I tried "extrovert", the following is pasted
after copying from its results window:

Anagrams of 'extrovert' copied from Anagram Master
extrovert
retort vex
rotter vex
vertex rot
rover text
err tot vex

You would have to use another tool to separate all the smaller words.
Unfortunately the URL supplied with the program is dead. However I have
the program, and can post to a temporary webpage if you want to have a go.

Adrian Carter
 
A

Alan

larrydalooza said:
I wrote a GUI front for AutoIt that can be used for DOS batch also.
You set environment variables, then run AutGUI. AutGUI can then rerun
a batch file that will inherit 'answer' environment variables from the
GUI...
<snip>

I'd forgotten you were the resident AutoIt expert :) Larry.
Thanks for the quick reply.
 
J

John Fitzsimons

John Fitzsimons wrote

Hi Adrian,
.... snipped
Have you tried Anagram Master? I tried "extrovert", the following is pasted
after copying from its results window:
Anagrams of 'extrovert' copied from Anagram Master
extrovert
retort vex
rotter vex
vertex rot
rover text
err tot vex
You would have to use another tool to separate all the smaller words.
Unfortunately the URL supplied with the program is dead. However I have
the program, and can post to a temporary webpage if you want to have a go.

If I have to "process" such a list I might just as well manually copy
the results from an anagram program that IMO works okay but hasn't
"cut and paste". One I used gave me results like :

ever
over
text
tree
trot
vote etc.

Besides, I have no idea what words like "err tot vex" are supposed to
mean !

Thanks for the suggestion however, :)

Regards, John.
 
J

John Fitzsimons

On Mon, 30 Jun 2003 07:23:58 -0700, "Cousin Stanley"

Hi Cousin Stanley,

Generate the anagrams ....
python anagrams.py extrovert
Sort them by word length ....
python word_len.py extrovert_ana.txt > extrovert_len.txt
Using extrovert as an input string
took about 6 minutes on the slow 250 MHz/Win98_SE box
that I use, but of course should be faster
on faster machines ...

anagram_av complete .........

Anagrams Scanned ......... 219413

Real Words Found ......... 49

Process Time ............. 82.8799999952 Seconds
There will be a few pregnant pauses while the program is working
but there should be a clear indication of when it has finished ...
I'd be interested to know if it works for you
or any other interested Python users ...

Excellent functioning and excellent speed. Many thanks, a top class
job ! :)

A few remaining questions if I may.....

(1) In a Python program like this can one interrupt it for "input" ?
For example, suppose one wanted to eg.

(A) Only print/display the 5 character words and/or

(B) Alter things so that only those words with the character "x" get
printed/displayed and/or

(C) Alter things so that only those words with the character "x" in
the third position get printed/displayed.

All presumably would need user "input", unless they were hard coded
into the .py file.

Lastly, I can get everything to run in the "Python" directory but not
in others. What/where do I change things to run Python Programs in
other directories than the Python one ? Is this an "associations"
thing ? Any ideas anyone ?


Regards, John.
 
C

Cousin Stanley

| ....
| Process Time ............. 82.8799999952 Seconds

It's good to see the improvement of speed
using a different machine ....

my 250 MHz machine .... 6 minutes
your ??? MHz machine .... 83 seconds

These results were for the 9 letter word extrovert
and should be faster for shorter words ....

| Excellent functioning and excellent speed.
| Many thanks, a top class job !

You're welcome ....

However, most of the gratitude should go to
the authors I cited in the Read_This file
which supplied the real processing functionality
as I only wrapped it all up into a package ....

Alex Martelli ....... Subset Combinations
Anton Vredegoor ..... Anagram Permutations
Andrew C. Yinger .... Known Word List

| ....
| Additional Functionality Proposals ....
| ....
| All presumably would need user "input",
| unless they were hard coded into the .py file.

Some filtering could probably be added ....

I'll have to ponder this for a bit
to see if the results would be worth
the programming effort ....

Although many permutations are scanned,
almost a million in the extrovert example,
the resulting output was only 50 real words
and probably could be easily filtered by the eyeball method,
especially after running the post-process
word_len.py which sorts the results by word length ....

However, it's possible that some filtering
could also provide overall processing speed improvements ....

| I can get everything to run in the "Python" directory
| but not in others.
|
| What/where do I change things to run Python Programs
| in other directories than the Python one ?
|
| Is this an "associations" thing ? Any ideas anyone ?
|

Adding the path to your Python folder
in the autoexec.bat file should allow you
to start Python programs from any other folder ....

For example, my Python installation is on the K: drive
in a folder named Python ....

set path=%path%;K:\Python

This allows you to enter ....

python someFile.py

from any other folder ....

I think xxxxxx.py files are associated
with the Python interpreter at install time
but the system needs the path to the interpreter
to be able to process them ....

The more painful alternative from other folders
is to always enter the full path to the Python interpreter ....

X:\someRoot\subFolder\Python\python someFile.py
 
F

Frank Bohan

John Fitzsimons said:
< snip >

I suspected as much. I thought that I would see if there was a GUI
option before resorting to DOS.

Thanks for the examples. If I use Tea then they will be a big help in
my getting things done. :)

Regards, John.

John:

I've just been experimenting with TEA to see if it meets the requirements of
your original problem (Tom, Dick and Harry) and found that it works
beautifully. You have to discard or temporarily remove the WORD.nn files
then run TEABUILD with your textfile as the parameter (teabuild
textfile.txt). This will produce a new set of WORD.nn files based on your
list. You can then run TEA (no need to use TEAUNBLD) and extract the four
letter words with ???? (and so on) which can be directed to a file or to
printer (My XP would not send to the printer but I just printed the output
file). After getting the selection press ALT-W, input the output file name
and hit ENTER. Your input file can be caps, l/c or mixed.

On the anagram problem (finding words within another word) ANAGRAM GENERATOR
will do this. Just input text and look for Lexigrams.
http://www.softology.com.au/


===

Frank Bohan
¶ Drilling for oil is boring.
 
J

John Fitzsimons


I've just been experimenting with TEA to see if it meets the requirements of
your original problem (Tom, Dick and Harry) and found that it works
beautifully.

< snip >

Thanks for the details. I haven't had time to properly study what Alan
wrote yet BUT I can see that your comments will be a big help as well.
Many thanks. :)
On the anagram problem (finding words within another word) ANAGRAM
GENERATOR will do this. Just input text and look for Lexigrams.
http://www.softology.com.au/

I am pretty sure someone else (Susan ?) also recommended that
BUT isn't it going to expire in 50 days ? It says "50 Day Trial
Version" on that page. Is there a freeware version ?


Regards, John.
 
A

Alan

John said:
< snip >

Thanks for the details. I haven't had time to properly study what Alan
wrote yet BUT I can see that your comments will be a big help as well.
Many thanks. :)

Just to add to what Frank suggests, you can use TEABUILD to build word
lists and keep them in a subfolder of TEA. Also keep a copy of the
default word lists in another subfolder. With a simple batch file, you
can drop whichever list(s) you want TEA to use, onto the batch file in
Windows Explorer and have them transferred (renamed too if needed) into
the main TEA folder for use as the "current dictionary", replacing any
existing ones.
 
F

Frank Bohan

John Fitzsimons said:
< snip >

Thanks for the details. I haven't had time to properly study what Alan
wrote yet BUT I can see that your comments will be a big help as well.
Many thanks. :)


I am pretty sure someone else (Susan ?) also recommended that
BUT isn't it going to expire in 50 days ? It says "50 Day Trial
Version" on that page. Is there a freeware version ?


Regards, John.

John: The freeware version I have is 1.19. I have the original downloaded
file and can let you have it if you want, BUT it is 2856KB. Dictionaries for
several foreign languages are included. I've also done an extended English
dictionary for it which is 2779KB (the original one is 1059KB). I'm not sure
if this is too large to e-mail. Let me know if I can help. Please reply here
unless you still have my real
address.

===

Frank Bohan
¶ The advantage of exercising every day is that you die healthier.
 
L

larrydalooza

Get AutGUI.exe and put it and this "GUI.bat" in c:\

just for my example... this can be run from where ever...
Gives me a test window and input window box. I think it also gave "Out
of environment space" but lost the DOS window.

AutGUI can read from a file also, to save environment space...

The inability of Autoit to run such a small batch file is why I think
it is useless for ordinary users.

Any inabilities I have exposed are not those of AutoIt, but of my own
coding...

come to http://groups.yahoo.com/group/AutoItList/

Post what you want as a final result, and be amazed at the help you
get...

BTW, AutoIt scripts can be compiled as EXE and can install within the
EXE resource like files, which can be extracted at run-time... very
fun, very cool

Larry
 
J

John Fitzsimons

just for my example... this can be run from where ever...

Or, as I found out, not run from anywhere.
AutGUI can read from a file also, to save environment space...

It might also be able to make my bed and do my ironing too but that
isn't much use if I cannot get it working.
Any inabilities I have exposed are not those of AutoIt, but of my own
coding...

You are the Autoit "expert". If you cannot code things correctly then
ordinary people have no hope whatever.
Post what you want as a final result, and be amazed at the help you
get...

I get that list, however I haven't been in a sufficiently masochistic
enough mood recently to try and make sense of the postings. I might
try understanding Greek, Chinese or Cobol first. They would probably
be easier to understand than Autoit.
BTW, AutoIt scripts can be compiled as EXE and can install within the
EXE resource like files, which can be extracted at run-time... very
fun, very cool

It's winter here. I might wait until summer (not necessarily the next
one) to see how "cool" Autoit really is.


Regards, John.
 
L

larrydalooza

Aren't you the prick?

John Fitzsimons said:
Or, as I found out, not run from anywhere.



It might also be able to make my bed and do my ironing too but that
isn't much use if I cannot get it working.



You are the Autoit "expert". If you cannot code things correctly then
ordinary people have no hope whatever.



I get that list, however I haven't been in a sufficiently masochistic
enough mood recently to try and make sense of the postings. I might
try understanding Greek, Chinese or Cobol first. They would probably
be easier to understand than Autoit.


It's winter here. I might wait until summer (not necessarily the next
one) to see how "cool" Autoit really is.


Regards, John.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top