Spelling Suggestion on the JVM #5: Implementing Norvig's Algo in Xtend
This tutorial project implements a basic spelling suggestion service with a didactic motivation:
becoming familiar with “better Java” languages around a simple but instructional example
(Norvig’s approach to spelling correction). Norvig’s algo is first implemented in Java 10.
Subsequently, idiomatic implementations are presented in
Kotlin,
Scala and
Xtend.
The posts in this series are:
- Norvig’s Approach to Spelling Correction
- Implementing Norvig’s Algo in Java
- Implementing Norvig’s Algo in Kotlin
- Implementing Norvig’s Algo in Scala
- Implementing Norvig’s Algo in Xtend (this post)
Functional, tested code in the 4 languages is available on the project’s Spellbound repository.
How do we go about designing a URL shortener? This series of articles contrasts the Java and Xtend languages around a very simple URL shortening REST service.
How do we go about implementing the URL shortener in Java? This series of articles contrasts the Java and Xtend languages around a very simple URL shortening REST service.