Algorithm
Property Code : The Property Code algorithm will generate a 6 character Property code based on the Property name. Each Property Code is unique in the database, and will be used to automatically generate Unit IDs for that Property.
Clean Property Name
The algorithm will begin by eliminating the characters or words
· Period (.)
· Comma (,)
· Dash (-)
· Underscore (_)
· Ampersand (&)
· At (@)
· Slash (/)
· Star (*)
· Both Parenthesis (())
· Number Sign (#)
· C/O
· CO
· AT
· THE
· OF
· ON
· LLC
· INC
The following words will be translated:
· APART,APARTMENT,APARTMENTS,APTS,APT to AP
· CONDO, CONDOMINIUM, CONDOS, CONDOMINIUMS to CD
· LANE to LN
· PLACE to PL
· ROAD to RD
· SQUARE to SQ
· STREET to ST
· SUITE to SE
· WAY to WY
Analyze Cleaned Property Name : The algorithm will then analyze the resulting Property Name, determine the number of usable words and split the property name into distinct words.
Code Generation:
The code will take into consideration factors like:
· Number of words
· If the first word is a number
· Length of the word
· Strip the word of all vowels starting from the 2nd position, and the resulting length.
Then it will begin generation by using the first letter of each word, plus a constant number of consonants after the first letter. If not enough consonants are available, it will use the reminder of the word.
Variations : If a unique code is not generated, the system will generate the code using up to 3 distinct variations, in which the new code will be created using the first letter of each word, but will start using not the next consonants, but the next pair of consonants / letters in the word.
Forced Uniqueness : If a unique code is not found after all 3 variations, the system will then go back to the first variation and it will replace the last character with a digit from 0 – 9 or a letter from A – Z, creating up to 35 different combinations, after these are exhausted, it will go to the next variation, and replace the last character.
