Questions tagged [text-comparison]

42 questions
17
votes
3 answers

Enable text compression using React, Webpack and Apache

Supposedly the compression-webpack-plugin is supposed to do it. I installed the plugin with npm npm install compression-webpack-plugin --save-dev And edited my webpack.config.js file to include const CompressionPlugin =…
Sam
  • 1,765
  • 11
  • 82
  • 176
8
votes
3 answers

Eclipse text comparison order

I'm using Eclipse 3.4 (on Mac) and I've got an annoyance with the text comparison having the files I'm comparing in a specific order which is not what I want. When I compare two files it always seems to put the first file (alphabetically) on the…
Cebjyre
  • 6,552
  • 3
  • 32
  • 57
7
votes
2 answers

compare text and get differences

Well i want to compare 2 strings (version one and version two) and get the differences in a format that i can convert to html on my own, like you can view how a post was edited here on stackoverflow or like svn tracks differences between…
Peter
  • 37,042
  • 39
  • 142
  • 198
5
votes
1 answer

Is there jQuery plugin to compare differences in two different text strings?

I need compare differences in two different versions of same text like in Wikipedia or Stackoverflow, and I would like to know if there is jQuery plugin for this kind of purpose.
newbie
  • 24,286
  • 80
  • 201
  • 301
4
votes
0 answers

NotePad++ - How to make changes to highlighted differences in Compare?

I am comparing two texts using Notepad++'s Compare plugin. For convenience, I would like the ability to make a small change to every highlighted difference. I would like it to make every word uppercase, but it could be something as simple as adding…
Zellonous
  • 41
  • 2
4
votes
3 answers

Do a "git diff" between two directories due to website owner making live changes

I have a project I'm working on which I've set up in a git repo. Since I put my latest version live, the website owner has made some changes to the working/content by overwriting it directly. Obviously these changes were made outside of version…
Tom Busby
  • 1,319
  • 2
  • 12
  • 25
4
votes
1 answer

Rewriting PHP's similar_text in Scala

In an attempt to rewrite PHP's similar_text algorithm I have tried a few different approaches. All have been moderately successful but ultimately failed. First attempt: I tried just rewriting it from the PHP source code. C's elegant use of pointers…
Commander
  • 1,322
  • 2
  • 13
  • 29
3
votes
1 answer

Difference between text as image and graphics as image

The question seems to be weird, but I need to ask this, since I am witnessing a quite interesting output when I compare text as image and graphics as image. Ideally I am in process of identifying an tool, or algorithm to compare two pdfs, generate…
3
votes
2 answers

String comparison between two cells containing text but one containing multiple delimiters

I wish to compare two cells in excel which contain similar text but one containing different delimiters in it. I want to ignore the delimiters while comparing the strings. Eg. John Doe: Mary Ann. Are Married/ John Doe Mary Ann Are Married I am…
3
votes
2 answers

Metaphone or Soundex for Scala

I have found Apache's impelementation of Soundex and Metaphone in Java but I would prefer to keep the text comparison libraries I am using in Scala only if possible. Google searches have yielded me nothing useful in finding either of these…
Commander
  • 1,322
  • 2
  • 13
  • 29
2
votes
5 answers

Compare lots of texts (clustering) with a matrix

I have the following PHP function to calculate the relation between to texts: function check($terms_in_article1, $terms_in_article2) { $length1 = count($terms_in_article1); // number of words $length2 = count($terms_in_article2); // number…
caw
  • 30,999
  • 61
  • 181
  • 291
2
votes
0 answers

Recognise duplicate sentences in an audio file

I'm searching for information on the best way to recognize duplicate segments of speech in an audio file. Let's say somebody is recording himself saying a text, sometime he will choke on a sentence, stop, and start again from the begging of the…
2
votes
1 answer

Text revision comparison StackOverflow-style for ASP.NET MVC?

I'd like to show revisions of text, and I love how StackOverflow does it (e.g. see below). Is there an open source .NET code that can receive two texts and output such a result? If you know of a paid solution that may also be relevant, thanks.
Roee Adler
  • 33,434
  • 32
  • 105
  • 133
2
votes
1 answer

Excel Looping through cells with vbTextCompare to assign categories

I have a spreadsheet which contains a summary Column(Column K) on each row. I need to match certain words in the summary column in order to assign a category name in a new column(Column V). I tried doing this with a normal excel If statement but I…
jampez77
  • 5,012
  • 7
  • 32
  • 52
2
votes
1 answer

Algorithm to calculate how much of text A is in text B?

I need to calculate how much of a block of text (A) is in another block of text (B). Simple algorithms like soundex aren't providing great results for me as text B has additional text within it that isn't/shouldn't be in text A, which throws my…
Phillip B Oldham
  • 18,807
  • 20
  • 94
  • 134
1
2 3