I'm looking for an algorithm that can be used to compare two sentences are provide a matching score. For example,
INPUT
Sentence Input 1: "A quick brown fox jumps over the lazy dog"
Sentence Input 2: "Alpha bravo dog quick beta gamma fox over the lazy dug"
OUTPUT
Output: "A quick brown fox jumps over the lazy dog"
Score: 5 out of 9 (words found in correct order)
Can someone please point me in the right direction?