Pluralizing Notepad.exe

Dell / DIMENSION 1100
January 12, 2009 at 21:05:36
Specs: Windows XP, Intel 1.87
hey guys, dunno if this is the right place to post this but here goes..

im working on a project compiling words, i have a dictionary.txt(notepad) file of over 70,000 + words configured like this..

abdicate
abdomen
abdominal
abduct
abduction
aberration
abet
abhor

.. in the .txt file, is there a way to pluralize each of these words easily? not too time consuming so the outcome would be..

abdicates
abdomens
abdominals
abducts
abductions
aberrations
abets
abhors

any help would be much appreciated


See More: Pluralizing Notepad.exe

Report •


#1
January 12, 2009 at 22:44:31
I'm sure somebody over in the "Programming" forum could whip you up a batch file to suit your needs. Or, if you prefer, they could show you how to write your own batch file.

Please let us know if you found someone's advice to be helpful.


Report •

#2
January 13, 2009 at 00:21:30
What about special cases ex. elf - elves and similar words.

Report •

#3
January 13, 2009 at 04:17:56
ill have to manually go through the ones that need to be retyped (elf elves, wolf wolves)

so should i post this in programming forum? or leave it here?


Report •

Related Solutions

#4
January 13, 2009 at 14:38:50
Leave it here. If it is a standard text file one word per line the solution is almost trivial. In BASIC it probably could be done in less than a dozen lines of code.

Report •

#5
January 14, 2009 at 10:48:45
yep, thats exactly what it is, im just not good with this area of computers ;( so i hope im not over stepping my bounds asking for maybe a .exe or something simple that i could run hehe

Report •

#6
January 15, 2009 at 02:35:36
Here is a BASIC program.

rem plural
rem 1/13/2009
open "dictionary.txt" for input as #1
open "plural.txt" for output as #2
words = 0
while not eof(1)
line input #1, dict$
print #2, rtrim$(ltrim$(lcase$(dict$))); "s"
words = words + 1
wend
close #2
close #1
print "Words Processed -"; words


Report •

#7
January 16, 2009 at 01:09:46
so what do i do with that? download basic? run from basic or something?

Report •

#8
January 16, 2009 at 16:43:28
It will run in Quick BASIC or compatible.

Report •

#9
January 16, 2009 at 19:36:01
sorry for the hassle, i pasted this into Just BASIC and hit run but it did nothing, it just highlighted the "while not eof(1)" bit i opened dictionary.txt and plural.txt and hit run but it did nothing, what am i doing wrong

Report •

#10
January 17, 2009 at 06:25:08
I don't remember trying Just Basic. I used Free Basic with -lanq qb option. Probably either While/wend or eof is not supported or there is a syntax syntax error.

Report •

#11
January 19, 2009 at 11:33:22
well ive tried everything and nothing is working, freebasic is a command prompt, i have no idea what to do with that snippet, paste it into free basic command prompt? sorry im not good at this type of stuff so i need instructions ;(

Report •

#12
January 19, 2009 at 12:11:01
hehe, genius! got it, thanks for all your help buddy, ace

Report •


Ask Question