Skip to content

Commit

Permalink
Work on genderfromname
Browse files Browse the repository at this point in the history
  • Loading branch information
petewarden committed Mar 20, 2011
1 parent bfb7cab commit c32f78f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 16 deletions.
4 changes: 2 additions & 2 deletions geodictapi.xcodeproj/petewarden.mode1v3
Expand Up @@ -332,7 +332,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>597D8D4B133589160042C251</string>
<string>597D8D4D1335895B0042C251</string>
<key>history</key>
<array>
<string>5929E12313244A2300B81D2E</string>
Expand Down Expand Up @@ -416,7 +416,7 @@
<key>_historyCapacity</key>
<integer>0</integer>
<key>bookmark</key>
<string>597D8D4C133589160042C251</string>
<string>597D8D4E1335895B0042C251</string>
<key>history</key>
<array>
<string>5929E16113246ABF00B81D2E</string>
Expand Down
44 changes: 33 additions & 11 deletions geodictapi.xcodeproj/petewarden.pbxuser
Expand Up @@ -1460,6 +1460,8 @@
597D8D4A133588FC0042C251 /* PBXTextBookmark */ = 597D8D4A133588FC0042C251 /* PBXTextBookmark */;
597D8D4B133589160042C251 /* PBXTextBookmark */ = 597D8D4B133589160042C251 /* PBXTextBookmark */;
597D8D4C133589160042C251 /* PBXTextBookmark */ = 597D8D4C133589160042C251 /* PBXTextBookmark */;
597D8D4D1335895B0042C251 /* PBXTextBookmark */ = 597D8D4D1335895B0042C251 /* PBXTextBookmark */;
597D8D4E1335895B0042C251 /* PBXTextBookmark */ = 597D8D4E1335895B0042C251 /* PBXTextBookmark */;
};
sourceControlManager = 5929E10413243EA700B81D2E /* Source Control */;
userBuildSettings = {
Expand Down Expand Up @@ -15181,9 +15183,9 @@
};
597D8CE2133561460042C251 /* text2people.rb */ = {
uiCtxt = {
sepNavIntBoundsRect = "{{0, 0}, {821, 2520}}";
sepNavSelRange = "{2497, 0}";
sepNavVisRange = "{1743, 1633}";
sepNavIntBoundsRect = "{{0, 0}, {821, 3195}}";
sepNavSelRange = "{5178, 0}";
sepNavVisRange = "{4214, 983}";
};
};
597D8CE31335746F0042C251 /* PBXTextBookmark */ = {
Expand All @@ -15201,7 +15203,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 1";
rLen = 0;
rLoc = 5194;
rLoc = 5197;
rType = 0;
vrLen = 1120;
vrLoc = 0;
Expand Down Expand Up @@ -15835,7 +15837,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 181";
rLen = 0;
rLoc = 5194;
rLoc = 5197;
rType = 0;
vrLen = 990;
vrLoc = 3871;
Expand Down Expand Up @@ -15875,7 +15877,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 181";
rLen = 0;
rLoc = 5194;
rLoc = 5197;
rType = 0;
vrLen = 999;
vrLoc = 3886;
Expand Down Expand Up @@ -15935,7 +15937,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 183";
rLen = 0;
rLoc = 5194;
rLoc = 5197;
rType = 0;
vrLen = 980;
vrLoc = 3953;
Expand All @@ -15955,7 +15957,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 183";
rLen = 0;
rLoc = 5194;
rLoc = 5197;
rType = 0;
vrLen = 983;
vrLoc = 3953;
Expand All @@ -15975,7 +15977,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 182";
rLen = 0;
rLoc = 5194;
rLoc = 5197;
rType = 0;
vrLen = 914;
vrLoc = 3899;
Expand All @@ -15995,7 +15997,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 185";
rLen = 0;
rLoc = 5175;
rLoc = 5178;
rType = 0;
vrLen = 979;
vrLoc = 3953;
Expand Down Expand Up @@ -16215,7 +16217,7 @@
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 196";
rLen = 0;
rLoc = 5175;
rLoc = 5178;
rType = 0;
vrLen = 980;
vrLoc = 4216;
Expand All @@ -16240,4 +16242,24 @@
vrLen = 1633;
vrLoc = 1743;
};
597D8D4D1335895B0042C251 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 597D8C91133526740042C251 /* dstk.py */;
name = "dstk.py: 500";
rLen = 0;
rLoc = 14140;
rType = 0;
vrLen = 1444;
vrLoc = 13721;
};
597D8D4E1335895B0042C251 /* PBXTextBookmark */ = {
isa = PBXTextBookmark;
fRef = 597D8CE2133561460042C251 /* text2people.rb */;
name = "text2people.rb: 196";
rLen = 0;
rLoc = 5178;
rType = 0;
vrLen = 983;
vrLoc = 4214;
};
}
6 changes: 3 additions & 3 deletions text2people.rb
Expand Up @@ -191,6 +191,6 @@ def match_first_name(word)
{ :gender => info[:gender] }
end

text = open('../cruftstripper/test_data/inputs/cnn.com.html').read()
output = text2people(text)
puts output.inspect
#text = open('../cruftstripper/test_data/inputs/cnn.com.html').read()
#output = text2people(text)
#puts output.inspect

0 comments on commit c32f78f

Please sign in to comment.