Shalujha0907 opened a new pull request, #424:
URL: https://github.com/apache/commons-codec/pull/424

   ColognePhonetic: Duplicate code in some cases
   
   This PR fixes the above issue.
   
   Summary
   This PR fixes duplicate-code handling in ColognePhonetic when processing 
characters that do not directly produce output (especially H) and adds 
regression tests for the affected scenarios.
   
   Root Cause
   The duplicate filter depends on the previous effective phonetic code, but 
skipped/intermediate characters were still influencing lastCode, so 
adjacent-equivalence checks were performed against the wrong value.
   
   Impact
   Fixes incorrect duplicate handling around skipped/intermediate characters.
   Preserves expected Cologne Phonetic output rules.
   Improves confidence via targeted regression tests.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to