Skip to content

Commit

Permalink
Debug logging for name analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
jetpaccomputer committed May 24, 2013
1 parent 1a9ba34 commit dc57e4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion text2people.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def text2people(text)
title_match = match_title(first_word)
first_name_match = match_first_name(first_word)
$stderr.puts "first_word=#{first_word}"
$stderr.puts "first_name_match=#{first_name_match?first_name_match.to_json:'nil'}"
if first_name_match
$stderr.puts "first_name_match=#{first_name_match.to_json}"
end

if !title_match and !first_name_match
debug_log('"'+first_word+'" doesn\'t match a first name or title, skipping')
Expand Down

0 comments on commit dc57e4e

Please sign in to comment.