* Malformed addresses

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
quarlton
Famous
Posts: 150
Joined: 26 Feb 2004 13:07
Family Historian: V7
Location: Lincolnshire
Contact:

Malformed addresses

Post by quarlton » 08 May 2022 11:09

I have a friend who has entered addresses without comma separators.
All entries are in the Place field

e.g. 31 Charles Street Cheadle Cheshire England

I could easily add a comma before each space, unfortunately this fails with the street part.

31, Charles, Street, Cheadle, Cheshire, England

Does anyone have a suggestion as how I could handle this?

Thanks
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs

User avatar
davidf
Megastar
Posts: 951
Joined: 17 Jan 2009 19:14
Family Historian: V6.2
Location: UK

Re: Malformed addresses

Post by davidf » 08 May 2022 12:15

Progressively use the Search and Replace feature to replace:
"Street" with "Street," (and road and lane etc - hope fully not "st" - which could be "saint")
"Cheshire" with ", Cheshire," etc

David
David
Running FH 6.2.7. Under Wine on Linux (Ubuntu 22.04 LTS + LXDE 11)

User avatar
tatewise
Megastar
Posts: 27082
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Malformed addresses

Post by tatewise » 08 May 2022 13:37

Do NOT edit Place fields. Do NOT use Edit > Find and Replace... commands.
Those methods will play havoc with the Place records.

I suggest you use the Search and Replace plugin to initially replace each space with a comma and space.
See https://pluginstore.family-historian.co ... me_changes and follow the Global Change Example advice.
You will need to select the Part Words option.

Then continue to use the plugin to correct special cases like the following as you discover them:
, Street becomes Street
, Road becomes Road
etc.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
quarlton
Famous
Posts: 150
Joined: 26 Feb 2004 13:07
Family Historian: V7
Location: Lincolnshire
Contact:

Re: Malformed addresses

Post by quarlton » 08 May 2022 14:21

Thanks to DavidF and Mike

Managed to do a good chunk of it without too much effort.

Is there an 'append' option at all?
Ideally I would like to add 'England' on to the end.

If this results in some 'England, England' that's easy to fix.

Thanks again
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs

User avatar
tatewise
Megastar
Posts: 27082
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Malformed addresses

Post by tatewise » 08 May 2022 15:45

Yes, but needs LUA Pattern Mode enabled and you need to understand LUA Patterns as explained in the Help & Advice.

Search: (.+)

Replace: %1, England

(.+) where .+ matches any character multiple times and ( ) captures that.

%1, England where %1 applies the captured text and , England appends itself.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

avatar
quarlton
Famous
Posts: 150
Joined: 26 Feb 2004 13:07
Family Historian: V7
Location: Lincolnshire
Contact:

Re: Malformed addresses

Post by quarlton » 08 May 2022 16:02

Thanks Mike,

That works a treat (why am I not surprised).

I always struggle with LUA/GREP pattern matching for anything beyond the basic.
Dave Simpson ~ Boulton, Braham, Carney, Simpson and Jacobs

Post Reply