Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Simple request for Perl programmer from an ESL teacher  (Read 4524 times)

0 Members and 1 Guest are viewing this topic.

lisapaloma

    Topic Starter


    Starter

    • Experience: Familiar
    • OS: Windows XP
    Simple request for Perl programmer from an ESL teacher
    « on: October 21, 2012, 03:25:48 PM »
    I once had a word list in which the words were spelled backward (e.g., yranoitcid), but it got left on an old computer. I would love to have such a list again, so that I can do things like find a lot of examples of words that end in -ate. A word list spelled correctly but sorted from end to beginning would be equally nice.

    I understand that in Perl a one-line program can do this, (my Google search found a forum from 2005 where someone had answered a similar request: http://ask.metafilter.com/16262/Where-to-find-a-dictionary-of-words-that-are-spelled-backwards, but the link to the output was dead) so I'm wondering if someone could take a moment and generate one for me, since I am not a programmer. A .txt document of the result would be greatly appreciated. :)

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: Simple request for Perl programmer from an ESL teacher
    « Reply #1 on: October 21, 2012, 04:25:17 PM »
    Reversed Dictionary words:

    http://bc-programming.com/misc/dictreverse.txt

    Words that end with ate:

    http://bc-programming.com/misc/endate.txt


    The dictionary itself is from the dictionary file that was included with Linux Mint 11, I believe.
    I was trying to dereference Null Pointers before it was cool.

    lisapaloma

      Topic Starter


      Starter

      • Experience: Familiar
      • OS: Windows XP
      Re: Simple request for Perl programmer from an ESL teacher
      « Reply #2 on: October 21, 2012, 09:20:21 PM »
      Exactly what I wanted! Thank you so much!

      lisapaloma

        Topic Starter


        Starter

        • Experience: Familiar
        • OS: Windows XP
        Re: Simple request for Perl programmer from an ESL teacher
        « Reply #3 on: October 21, 2012, 09:46:23 PM »
        Could you do one more favor for me? I tried to do this myself, but the file is too big for Word to handle. If you could do a simple alphabetic sort on the complete list (with the sort starting from what is now the first letter), that will give me all the words with -ate together, all the words with -tion together, all the words with -ify, all the words with -ize, etc. I'm sorry I wasn't quite clear about that. Thank you.

        I've attached a sort as an example, but it only includes the first three pages.

        [year+ old attachment deleted by admin]

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: Simple request for Perl programmer from an ESL teacher
        « Reply #4 on: October 22, 2012, 12:11:47 AM »
        Could you do one more favor for me? I tried to do this myself, but the file is too big for Word to handle. If you could do a simple alphabetic sort on the complete list (with the sort starting from what is now the first letter), that will give me all the words with -ate together, all the words with -tion together, all the words with -ify, all the words with -ize, etc. I'm sorry I wasn't quite clear about that. Thank you.

        I've attached a sort as an example, but it only includes the first three pages.

        So, sort based on the reverse of the word?

        http://bc-programming.com/misc/sortreverse.txt
        I was trying to dereference Null Pointers before it was cool.

        lisapaloma

          Topic Starter


          Starter

          • Experience: Familiar
          • OS: Windows XP
          Re: Simple request for Perl programmer from an ESL teacher
          « Reply #5 on: October 22, 2012, 05:54:37 PM »
          Beautiful! Thank you so much!