Normalization and Standardization

The first release of OpenRegistry has basic standardization and normalization:

  1. Change capitalization of input: NONE, CAPITALIZE, UPPER, LOWER where capitalize is "intelligent" capitalization.
  2. First Name analysis: attempt to capitalize first names correctly with an override capability
  3. Last Name analysis: attempt to capitalize last names correctly with an override capability

All of this is configurable in WEB-INF/local-configuration/normalization.xml

normalization.xml
<!--

    Copyright (C) 2009 Jasig, Inc.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

            http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:p="http://www.springframework.org/schema/p"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

    <bean name="capitalizationAspect"
          class="org.openregistry.core.aspect.CapitalizationAspect"
          factory-method="aspectOf">
        <property name="defaultCapitalization" value="CAPITALIZE" />
        <property name="overrideCapitalization">
            <map>
                <entry key="name.given" value="NONE" />
                <entry key="name.family" value="NONE" />
            </map>
        </property>
    </bean>

    <bean name="firstNameAspect"
          class="org.openregistry.core.aspect.FirstNameAspect"
          factory-method="aspectOf">
        <property name="disabled" value="false" />
    </bean>

    <bean name="lastNameAspect"
          class="org.openregistry.core.aspect.LastNameAspect"
          factory-method="aspectOf">
        <property name="disabled" value="false" />
    </bean>
</beans>

The FirstName and LastName can take a customMapping property to map particular names.