---
layout: post
status: publish
published: true
title: Phone mnemonics in Erlang
author:
display_name: Siv
login: admin
email: alessandro.sivieri@gmail.com
url: https://launchpad.net/~scattino
author_login: admin
author_email: alessandro.sivieri@gmail.com
author_url: https://launchpad.net/~scattino
excerpt: 'Edit: too much rush, looks like the code may need a slight addition, I will
update it later… So, after Martin Odersky’s lesson and its example
of phone mnemonics (inspired by this article), I spent a little time and wrote an
implementation in Erlang. It may not be the best one, but it seems to […]
'
wordpress_id: 4076
wordpress_url: http://sivieri.wordpress.com/?p=2214
date: '2012-09-06 11:39:49 +0000'
date_gmt: '2012-09-06 10:39:49 +0000'
categories:
- PlanetPOuL
tags: []
comments: []
---
Edit: too much rush, looks like the code may need a slight addition, I will update it later…
So, after Martin Odersky’s lesson and its example of phone mnemonics (inspired by this article), I spent a little time and wrote an implementation in Erlang.
It may not be the best one, but it seems to work; you can find it here, for using it you need to fill in the WORDS constant with the strings which you can translate from numbers and call the translate method passing a number as string (i.e., mnemonics:translate(“5828″)).
The code follows the solution provided by Martin in his slides, maybe the code could be even more compact by using a different workflow, but I’m not sure.