lib/diggit/author_alias_merge/analyses/merge_alias_analysis.rb
# Most common case of false positive : a first name or surname in common
Most common case of false positive : a first name or surname in common
Most common case of false positive : a first name or surname in common
def only_name_or_surname_in_common?(a, b)
					name_a = a[:name].strip.split(/\s/)
					name_b = b[:name].strip.split(/\s/)
					return false if name_a.length != 2 || name_b.length != 2 || a[:email] == b[:email]
					(name_a.to_set & name_b.to_set).length == 1
				end
def only_name_or_surname_in_common? ( a , b ) name_a = a [ :name ] . strip . split ( / \s / ) name_b = b [ :name ] . strip . split ( / \s / ) return false if name_a . length != 2 || name_b . length != 2 || a [ :email ] == b [ :email ] ( name_a . to_set & name_b . to_set ) . length == 1 end
Most common case of false positive : a first name or surname in common
Most common case of false positive : a first name or surname in common
a
b