Tekstiviesti: Foundations of soft case-based reasoning