Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

279
Views
Detect if a question matches another question with python or js?

I'm trying to find out how I can detect if one question matches another with python or JS. For example detect that the question:

"Does anyone know the MySql password?"

is related to the question

"Does anyone know the MySql password?"

in order to give an automatic answer while limiting the number of false positives.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

`

let str1="Does anyone know the MySql password?"; 
let str2="Does anyone know the MySql password?";

let parsedStr1=str1.toLowerCase().replace(/\s/g,''); 
let parsedStr2=str1.toLowerCase().replace(/\s/g,'');

parsedStr1.localeCompare(parsedStr2);

/* Expected Returns:

 0:  exact match

-1:  string_a < string_b

 1:  string_a > string_b

*/

`

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!