Twirthie

Twirthie Downloads

Download Instructions

Select your operating system: Windows, Mac, or Linux.

Installation Instructions

  1. You must first install the Java JDK from Oracle
  2. Extract Twirthie files to desired folder (see Step 6 for Mac)
  3. For Linux/Mac, open a terminal
  4. For Windows, use the command-line
  5. When entering commands displayed in bold below, be sure to press Enter
  6. To unpack files on your Mac:
    • Make sure file downloaded is in an empty folder
    • Enter the following command:
    • tar -zxvf twirt.tar.gz
    • Alternatively, you can use your Mac's built-in download/extract feature
    • That way you don't have to enter the above tar command in bold
  7. Navigate to the folder containing extracted files
  8. For Linux/Mac:
    • Enter the following command:
    • ./twirt.sh
  9. For Windows:
    • Enter the following command:
    • twirt
  10. If you wish to generate multiple sentences, use a command-line argument:
    • For Steps 8 and 9 above, type a space and then a number
    • So to generate 3 sentences, enter one of the following 2 commands:
    • ./twirt.sh 3
    • twirt 3
  11. If you wish to modify the source code and need to echo your input:
    • Enter one of the following 2 commands:
    • ./twirt.sh 0 > temp.txt
    • twirt 0 > temp.txt
  12. To view the output generated above, edit the temp.txt file
  13. If you click on Java Source in order to modify the source code:
    • Version is identical to .java files bundled with .class files
    • Be sure to rename it, omitting the .txt extension
  14. Tip: to repeat the previous terminal command, use this method:
    • Press Up Arrow
    • Press Enter
  15. I hope you have as much fun running Twirthie as I had coding it!
[ Back to Top ]