def get_pairs(lang1, lang2, lex):
	"""
	Returns all the lang1-lang2 pairs of words with the same Concepticon ID.
	Returns [] of LexStat ID tuples.
	
	Note that LexStat.pairs cannot be used here because the latter flattens
	transcription duplicates.
	"""
	pairs = []
	
	for gloss1, indices1 in lex.get_dict(col=lang1).items():
		for gloss2, indices2 in lex.get_dict(col=lang2).items():
			if gloss1 == gloss2:
				pairs.extend([
					(i, j) for i in indices1 for j in indices2
				])
	
	return pairs