Howdy -- I couldn''t find any existing libraries to help format international mailing addresses. Turns out it''s rather tedious. Not only do different countries have different names for the components of an address, but many countries have different formats for the city line. And then there''s Great Britain, er England, er ... yeah. So I''ve started work on a plugin called Snail. My dream is that it will grow to encapsulate the rules of international address formatting and basic validation. It''s just quite a lot for any one person. The first release is up on GitHub at http://github.com/cainlevy/snail. If your application has anything to do with addresses, and you think it may need to go international, I hope you''ll check it out! -Lance
Kevin Elliott
2009-Jul-16 01:17 UTC
Re: [ANN] Snail, a plugin for international mailing addresses
Lance, I commend you on taking this on. This has been a huge pet peeve of mine over the years, and only very expensive commercial solutions were available to even do a fraction of the things necessary to manage mailing addresses. Have you thought about also creating parsers to help identify what the address is, and which formatter to use? (like, identify which state/ province and country, then determine the rules around parsing and formatting) Also, I find that I often work with addresses that were inputted in odd ways, and requires me to "scrub" them a lot. There are very expensive commercial solutions for this, but no good open source solutions, and especially no Ruby ones. Thought about putting in some basic scrubbing rules as well (and possibly address verification services)? I''ll keep an eye on Snail, and help where I can. -Kevin On Jul 15, 2009, at 5:17 PM, Lance wrote:> > Howdy -- > > I couldn''t find any existing libraries to help format international > mailing addresses. Turns out it''s rather tedious. Not only do > different countries have different names for the components of an > address, but many countries have different formats for the city line. > And then there''s Great Britain, er England, er ... yeah. > > So I''ve started work on a plugin called Snail. My dream is that it > will grow to encapsulate the rules of international address formatting > and basic validation. It''s just quite a lot for any one person. > > The first release is up on GitHub at http://github.com/cainlevy/snail. > If your application has anything to do with addresses, and you think > it may need to go international, I hope you''ll check it out! > > -Lance > >
cainlevy
2009-Jul-16 04:48 UTC
Re: [ANN] Snail, a plugin for international mailing addresses
Thanks Kevin! Looking forward to the assistance. :-) I haven''t thought about scrubbers and parsers. Sounds like a good fit, but I''m not in a position to really know the best approach, nor do I have an application requiring them that I could use for real-world test data. My first priority with Snail is to make it easy for people to improve the areas that are most important to them. Right now I have a fixed origination country (USA) and no validation rules. I think the next step is to sketch out the validation system and make the origination country configurable, even if it still only supports USA. From there I hope that people will find it easy to add rules for the countries they know best. -Lance On Wed, Jul 15, 2009 at 6:17 PM, Kevin Elliott <kevin-bjsViUlG2TsAvxtiuMwx3w@public.gmane.org> wrote:> > Lance, > > I commend you on taking this on. This has been a huge pet peeve of > mine over the years, and only very expensive commercial solutions were > available to even do a fraction of the things necessary to manage > mailing addresses. > > Have you thought about also creating parsers to help identify what the > address is, and which formatter to use? (like, identify which state/ > province and country, then determine the rules around parsing and > formatting) > > Also, I find that I often work with addresses that were inputted in > odd ways, and requires me to "scrub" them a lot. There are very > expensive commercial solutions for this, but no good open source > solutions, and especially no Ruby ones. Thought about putting in some > basic scrubbing rules as well (and possibly address verification > services)? > > I''ll keep an eye on Snail, and help where I can. > > -Kevin > > > On Jul 15, 2009, at 5:17 PM, Lance wrote: > > > > > Howdy -- > > > > I couldn''t find any existing libraries to help format international > > mailing addresses. Turns out it''s rather tedious. Not only do > > different countries have different names for the components of an > > address, but many countries have different formats for the city line. > > And then there''s Great Britain, er England, er ... yeah. > > > > So I''ve started work on a plugin called Snail. My dream is that it > > will grow to encapsulate the rules of international address formatting > > and basic validation. It''s just quite a lot for any one person. > > > > The first release is up on GitHub at http://github.com/cainlevy/snail. > > If your application has anything to do with addresses, and you think > > it may need to go international, I hope you''ll check it out! > > > > -Lance > > > > > > > >-- rails blog: http://codelevy.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Marnen Laibow-Koser
2009-Jul-16 08:34 UTC
Re: [ANN] Snail, a plugin for international mailing addresses
Lance wrote:> Howdy -- > > I couldn''t find any existing libraries to help format international > mailing addresses.[...]> So I''ve started work on a plugin called Snail. My dream is that it > will grow to encapsulate the rules of international address formatting > and basic validation. It''s just quite a lot for any one person.This sounds great. I''m currently considering what I need to do to Quorum ( http://quorum2.sourceforge.net ) to handle international addresses decently, and Snail may well play a role in that. In any case, I''ll have a closer look at Snail, and perhaps find someplace that I can contribute... Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.