A command-line utility for exploring word associations in the Edinburgh Associative Thesaurus (EAT). Originally developed at Rutherford Appleton Laboratory in 1988, with enhancements added in 2005.
EATSHOW allows you to search for words in the Edinburgh Associative Thesaurus and view their associated words along with frequency statistics. The program operates in two modes:
- Stimulus Mode: Shows responses given when the query word was used as a stimulus
- Response Mode: Shows stimuli that elicited the query word as a response
- C compiler (gcc, cl, icl, or compatible)
- Edinburgh Associative Thesaurus data files:
sr_concise- Stimulus-Response datars_concise- Response-Stimulus datasr_index- Stimulus-Response indexrs_index- Response-Stimulus index
# GCC
gcc -Wall eatshow.c -o eatshow
# Microsoft Visual C++
cl eatshow.c
# Intel C Compiler
icl -Wall eatshow.cRun without arguments to enter interactive mode:
./eatshowYou'll be prompted to enter words. Press Enter (without typing a word) to exit.
Pass words directly as arguments:
./eatshow word1 word2 word3-a- Display additional information about the application-d- Turn off results demarcation (no separating lines)-f<file>- Echo output to a file (appends if file exists)-i<file>- Read and process input from a file (one word per line)-l<n>- Limit output to first n results-n- Number the output results-r- Use Response mode (find stimuli for the given response)-s- Use Stimulus mode (default - find responses for the given stimulus)-sw- Toggle between Stimulus and Response modes (runtime switch)-t- Use tab-delimited output instead of spaces-x- Dump the complete index wordlist for the current mode-?- Display usage information
Basic word lookup:
./eatshow manNumber the results:
./eatshow -n womanSwitch modes during execution:
./eatshow man -sw manFirst shows responses when "man" was a stimulus, then shows stimuli where "man" was a response.
Tab-delimited output to file:
./eatshow -t -foutput.txt -n dog catResponse mode with tab output:
./eatshow -r -t happyProcess words from a file:
./eatshow -i wordlist.txtFor each word found, the program displays:
- Associated Words: Words that are linked to the query word
- Frequency Count: Number of times each association occurred
- Proportion: Frequency as a proportion of total responses
- Summary Statistics:
- Total number of different responses
- Total count of all responses
The program expects the following data files in the current directory:
./sr_concise- Contains 8,211 stimulus-response pairs./rs_concise- Contains 22,776 response-stimulus pairs./sr_index- Index for stimulus-response lookups./rs_index- Index for response-stimulus lookups
Note: File paths can be modified by changing the constants at the top of the source code.
- Dual Mode Operation: Search by stimulus or response
- Flexible Output: Tab or space-delimited formatting
- File I/O: Read word lists from files, echo results to files
- Result Limiting: Control number of results displayed
- Runtime Mode Switching: Toggle between modes without restarting
- Error Handling: Gracefully handles missing words and file access errors
- June 1988: Original version by M.D. Wilson, Rutherford Appleton Laboratory
- June 2005: Enhanced by peetm (peet.morris@comlab.ox.ac.uk)
- Added command-line word processing
- Added multiple switches for output control
- Added file input/output capabilities
The Edinburgh Associative Thesaurus is a database of word associations collected from human subjects. It's widely used in psycholinguistics, cognitive science, and natural language processing research.
For more information, visit: http://www.eat.rl.ac.uk/
Original code from Rutherford Appleton Laboratory. Modified version free to use and distribute.
- Words are automatically converted to uppercase for searching
- The program creates an
es.logfile on first run in the current directory - Inaccessible or missing data files will cause the program to exit with an error message