title: is there an algorithm to find out which words in a search-string belong together?
body: <p>I was thinking about text driven search by user input.
  often you are searching in a database of addresses, where you can find customers and so on.</p>
  
  <p>has anybody any idea how to find out which of the typed words is the name, which is the street name, which is the company name?
   and secondly if the name is a double name like "Lee Harvey", how can I find out that the two words Lee and Harvey belong together?
  Same problem with company names like "frank the baker inc."...</p>
  
  <p>Is there any algorithm or best practice strategy?
  thanks for links, tutorials, scripts and all other help ;-)</p>