refactor: Replace hardcoded URIs with ontology lookups and remove whitespaces in GenderExtractor#824
Conversation
📝 WalkthroughWalkthroughRefactors GenderExtractor to use ontology-derived properties instead of hard-coded strings, introduces explicit language code extraction and gender mapping from configuration, adds Person-type verification, reworks pronoun counting with case-insensitive word-boundary matching, and implements threshold-based gender determination with ratio validation. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~30 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
Greetings @jimkont ,Kindly review my pr whenever available |



Replaces hardcoded URI strings with
context.ontologylookups and improves code quality.Changes:
context.ontology.properties()andcontext.ontology.classes()instead of raw URIslangStringDatatypeat class levelResolves issue #825
Summary by CodeRabbit
Release Notes