|
27 | 27 | * Encodes a string into a Cologne Phonetic value. |
28 | 28 | * </p> |
29 | 29 | * <p> |
30 | | - * Implements the <a href="http://de.wikipedia.org/wiki/K%C3%B6lner_Phonetik">“Kölner Phonetic�</a> (Cologne Phonetic) |
| 30 | + * Implements the <a href="http://de.wikipedia.org/wiki/K%C3%B6lner_Phonetik">Kölner Phonetik</a> (Cologne Phonetic) |
31 | 31 | * algorithm issued by Hans Joachim Postel in 1969. |
32 | 32 | * </p> |
33 | 33 | * |
34 | 34 | * <p> |
35 | | - * The <i>Kölner Phonetik</i> is a phonetic algorithm which is optimized for the German language. It is related to the |
| 35 | + * The <i>Kölner Phonetik</i> is a phonetic algorithm which is optimized for the German language. It is related to the |
36 | 36 | * well-known soundex algorithm. |
37 | 37 | * </p> |
38 | 38 | * |
|
151 | 151 | * </table> |
152 | 152 | * <p> |
153 | 153 | * <small><i>(Source: <a href= "http://de.wikipedia.org/wiki/K%C3%B6lner_Phonetik#Buchstabencodes" >Wikipedia (de): |
154 | | - * Kölner Phonetik – Buchstabencodes</a>)</i></small> |
| 154 | + * Kölner Phonetik -- Buchstabencodes</a>)</i></small> |
155 | 155 | * </p> |
156 | 156 | * |
157 | 157 | * <h4>Example:</h4> |
158 | 158 | * |
159 | | - * {@code "Müller-Lüdenscheidt" => "MULLERLUDENSCHEIDT" => "6005507500206880022"} |
| 159 | + * {@code "M}ü{@code ller-L}ü{@code denscheidt" => "MULLERLUDENSCHEIDT" => "6005507500206880022"} |
160 | 160 | * |
161 | 161 | * </li> |
162 | 162 | * |
|
168 | 168 | * |
169 | 169 | * <li> |
170 | 170 | * <h3>Step 3:</h3> |
171 | | - * Removal of all codes “0� except at the beginning. This means that two or more identical consecutive digits can occur |
| 171 | + * Removal of all codes "0" except at the beginning. This means that two or more identical consecutive digits can occur |
172 | 172 | * if they occur after removing the "0" digits. |
173 | 173 | * |
174 | 174 | * <h4>Example:</h4> |
175 | 175 | * {@code "6050750206802" => "65752682"}</li> |
176 | 176 | * |
177 | 177 | * </ul> |
178 | 178 | * |
179 | | - * @see <a href="http://de.wikipedia.org/wiki/K%C3%B6lner_Phonetik">Wikipedia (de): Kölner Phonetik (in German)</a> |
| 179 | + * @see <a href="http://de.wikipedia.org/wiki/K%C3%B6lner_Phonetik">Wikipedia (de): Kölner Phonetik (in German)</a> |
180 | 180 | * @author Apache Software Foundation |
181 | 181 | * @since 1.5 |
182 | 182 | */ |
@@ -282,7 +282,7 @@ private static boolean arrayContains(char[] arr, char key) { |
282 | 282 |
|
283 | 283 | /** |
284 | 284 | * <p> |
285 | | - * <b>colognePhonetic()</b> is the actual implementations of the <i>Kölner Phonetik</i> algorithm. |
| 285 | + * Implements the <i>Kölner Phonetik</i> algorithm. |
286 | 286 | * </p> |
287 | 287 | * <p> |
288 | 288 | * In contrast to the initial description of the algorithm, this implementation does the encoding in one pass. |
|
0 commit comments