Suppose the length of a candidate is a, the length of the reference is b and the length of their LCS is c, then we can define precision P and recall R as: It is easy to see that F is a suitable s(x, y).
we can use the F-score as the value for s(x, y).