Nombres is a project mainly written in Ruby, it's free.
class Integer include Nombres end
1.to_nombre # un 851.to_nombre # huit cent cinquante et un