ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > N.A.N.Y. 2011

NANY 2011 Release: WordCaster

(1/4) > >>

wraith808:
Ok... so it's a bit late, but I wanted to release something...  hope that's ok :)

NANY 2011 Entry Information
Application NameWordCasterVersion 1.0 Short Description Utility that checks definitions on multiple sites at the same time and displays them in one interface. Supported OSes WindowsOther Requirements .NET Framework 3.5Web Page My SoftwareDownload Linkhttp://www.wraith808.com/files/WordCaster.zipConfiguration Filehttp://wraith808.com/files/WordCaster.exe.configVersion History
* 2011-01-01 - First ReleaseInspiration Credited To: this coding snack request, though this isn't what the asker had in mind. :) Author wraith808

Description
N.A.N.Y. 2011 caught me in a bit of a rush. I didn't complete my original entry, but I had started on this because of a request that turned out to be specified incorrectly, so I finished it according to what I had originally specified it to be.

It uses a configuration file to specify several different dictionary type sites, and queries all of them on one word at the same time, showing the results. It uses regular expressions to parse the page, so is only as good as the regular expression specified in the site definitions. You can also specify different versions of the same site so that if a site might put it's definitions in more than one format, you can use the one that's appropriate (or query for more than one at once).

It's a bit rough around the edges still, and there are a couple of features that I haven't included that I want to include (for example the ability to remove spurious words that you might include to specify the definition, but that are not part of the definition). But it's currently functional, and a bit slick if I do say so myself. :)

Features

* Free for personal or educational use
* Very configurable
* Can query from multiple sites, or the same site more than once
Planned Features

* Remove extraneous words from the returned text
* Edit configuration from within program
* More default configurations
Screenshots
NANY 2011 Release: WordCaster

Usage
Installation
Requires .NET 3.5 framework, but other than that, unzip and run.

Using the Application
Add sites from the drop down, though no site definition can be added more than once.  Then enter the word to be defined, and click Get Definition.

The definitions are specified in the WordCaster.exe.config file in the executable directory in the following format.
<add siteName="<Unique Site Name>" description ="<Description of Entry>" definitionRegex="<RegEx for Definition>" url="<Enter URL Here, specifying place to put word to be defined by {Term}>"/>

Uninstallation
Delete application

Known Issues
Very minimal error handling at this point.
The regular expressions are rudimentary to be kind.  They don't handle a few cases, so I'll need to tighten them up.  As I do so, the configuration file can be downloaded separately at the link above.

kamahl:
Post-last second pledge?  :D

Also, bug report:  "Could not parse definition from HTML result using the specified RegEx Expression".  I searched "monkey", and got the error from both Dictionary.com sites.

Perry Mowbray:
Ok... so it's a bit late, but I wanted to release something...  hope that's ok :)
-wraith808 (January 01, 2011, 09:50 PM)
--- End quote ---

 :Thmbsup: More than OK... we don't mind late  ;)

wraith808:
Hey... it was released on January 1st :)

Not really a bug, other than my regex skills suck.  What my regex expressions are is the html stripped down to the text, then I find something to anchor it at the beginning and end of the term.  That one seems like it should work... hmmm...

I created a new config file.  You can either download the zip again, or just get it from here.

mouser:
im still getting that error  from both dictionaries.

a word i tested with:  test

Navigation

[0] Message Index

[#] Next page

Go to full version