In article <20021025183220.GA23625@heat>, Jeffrey Baker <[EMAIL PROTECTED]> wrote:
> > > How about Text::ExtractCompanyNames? > > > Business::ExtractCompanyNames? > > even those name have problems. right now you only handle english, > > but someone may want to handle another language. your namespace > > should be able to accomodate that. > Anybody wanting to handle another language is going to start > from scratch. that's fine, but the idea of modules is that the end programmer doesn't have to know that. they want to do the same logical task no matter the language, so you give them the same interface while you handle the heavy lfting for them. > > then, you can provide > > another module to extract the possible permutations that the Lingua:: > > modules return (and that module probably lives in another namespace). > > separate the permutation logic from the extraction logic and you will > > have much better flexibility. > I don't think it is possible to separate the two as you > suggest, but the namespace works for us anyway. sure it is. you just need to have the right design. :) the trick is to always make bits of the system as general as possible which maximizes code reusability. it is harder to do once you already have something though. -- brian d foy (one of many PAUSE admins), http://pause.perl.org please send all messages back to [EMAIL PROTECTED]