private List<List<Sentence>> getCombinationPairs(List<Sentence> clausesList)
{
int odd = clausesList.Count % 2;
int midpoint = 0;
if (odd == 1)
{
midpoint = (clausesList.Count / 2) + 1;
}
else
{
midpoint = (clausesList.Count / 2);
}
List<List<Sentence>> pairs = new List<List<Sentence>>();
for (int i = 0; i < clausesList.Count; i++)
{
for (int j = i; j < clausesList.Count; j++)
{
List<Sentence> pair = new List<Sentence>();
Sentence first = clausesList[i];
Sentence second = clausesList[j];
if (!(first.Equals(second)))
{
pair.Add(first);
pair.Add(second);
pairs.Add(pair);
}
}
}
return pairs;
}