Time for action – cloning Gender Genie!
Gender Genie (http://bookblog.net/gender/genie.php) is an online web application that tries to guess the gender of the author from a digital content. I always wanted to use this offline. Few methods and collection classes of C5 make it really simple.
- Create a Windows application and attach
C5.dll
andPowerCollections.dll
to the project's reference (instructions on How to get Power Collections can be found in Chapter 7, Power Collections). - Add the following
using
directives to the project:using C5; using Wintellect.PowerCollections;
- Add the following variables:
C5.ArrayList<string> femaleWords = new ArrayList<string>() {"with", "if", "not", "where", "be", "when", "your", "her", "we", "should", "she", "and", ...
Get .NET 4.0 Generics now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.