Tekstiviesti: Machine learning for function synthesis