In a sense you are building an algorithm but with different means from the usual ones. It is built trough compilation of a large amount of data using the well known machine learning algorithms. Tbh and especially in this case these are vocabulary terminations we should not but stuck on.