blakekr Posted February 8, 2007 Share Posted February 8, 2007 How to describe, hmmm ... I'm looking for some kind of php script or snippet that will allow me to compare the similarity of text, percentage wise. Meaning if I have paragraph A and paragraph B and they're substantially similar but not a match, a script that could tell me they are "80% similar." Much like copyscape does, I guess, only probably far less sophisticated. This sounds like something that would be easy to find, but perhaps it's much harder to do than it looks. At any rate I haven't been able to find something like it. Any thoughts? Link to comment https://forums.phpfreaks.com/topic/37648-solved-php-script-that-compares-text-calculates-similarity/ Share on other sites More sharing options...
kenrbnsn Posted February 8, 2007 Share Posted February 8, 2007 I believe you're looking for the function similar_text(). Ken Link to comment https://forums.phpfreaks.com/topic/37648-solved-php-script-that-compares-text-calculates-similarity/#findComment-180112 Share on other sites More sharing options...
blakekr Posted February 9, 2007 Author Share Posted February 9, 2007 Unbelievable. Exactly! Thanks!! Link to comment https://forums.phpfreaks.com/topic/37648-solved-php-script-that-compares-text-calculates-similarity/#findComment-180560 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.