Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8915127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:54:18+00:00 2026-06-15T04:54:18+00:00

In my application I have a feature where users can connect to different social

  • 0

In my application I have a feature where users can connect to different social networks to get a list of friends. For example, you can get your friends from linkedIn and from Facebook.

I would like to present a single list of friends that is the result of combining the various lists from different social networks together. The question is how to determine if names in different list are probably the same person? For example, Facebook might say “Jim Smith” and Linked In might say “Jim Smith, Phd” and I want my app to detected that they are the same person.

I have looked at the Levenshtein Distance function for strings, but I am not sure what to set the threshold too before considering two names as probably the same with a 75% confidence.

Here is what I am thinking about doing:

  • Do all comparisons in lower case
  • Remove all white space from the two names being compared before computing the levenshtein distance
  • turn the levenshtien distance into a percentage of the length of the shorter name
  • if the percentage is 0 its a perfect match
  • if the percentage is < x they are probably the same

I am planning to use the apache commons StringUtils.getLevenshteinDistance() for the Leventstien computation.

What is a good value of x? 10%, 20%, 30% … etc? Is this a good algorithm my Math skills are pretty rusty and I am not sure if this will work.

Is there a better approach? Is there a standard library that one should use for something like this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T04:54:19+00:00Added an answer on June 15, 2026 at 4:54 am

    I would go for an automatic algorithm that decides what should be the threshold:

    1. Create (manually) a set of examples – some are equivalent and some are not.
    2. Run your algorithm with various thresholds.
    3. Chose the threshold that maximize your result. I’d use the F-Measure, which takes into consideration the precision (how many that you said are “equivalent” are indeed are) and recall (how many of those who are correct are labeled as such).
    4. Use statistical tools to determine if there is statistical significance between the different thresholds (it will help you know if you need more examples or your set is just fine). Wilcoxon test is the de-facto standard for it in most cases.

    An alternative you might want to consider is in the field of machine learning – classification algorithms. In here, you want to calssify (user1,user2) and the answer is true if user1 is the same as user2.

    You can use the same tools (statsitical tests, and using cross-validation) to estimate accuracy of this approach.

    (Disclaimer: though I consider myself as experienced ML developer, I never tried to do something like this with this approach).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a feature in our application where users can take multiple photos from
I have a feature of my application which depends on alternate-click. Windows users don't
I have an application which uses offline_access to get permanent access to different pages.
We have an PHP/MySQL application where the users can create their own databases, which
Ok, So, I have a social networking website where users can share a post
I'm trying to build a web application in which users can invite their friends
I currently have an application that has a messaging feature. It allows users to
I have an application where there are a list of items that my users
I have a save as image feature for charts in my application. The chart
I have tried to make the fullscreen feature of a SDI application with splitter

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.