This reminds me of a book titled Grammatical Inference [1]. If you are interested in the blog post, you might also be interested in the book as well. It's a different kind of "learning" though.
[1] http://pagesperso.lina.univ-nantes.fr/~cdlh/book_webpage.htm...