Skip to content

Commit

Permalink
Merge pull request #39 from Sefaria/feat/remove-rebbe-for-author
Browse files Browse the repository at this point in the history
feat: handle rebbe before author names
  • Loading branch information
Paul-Yu-Chun-Chang authored Sep 20, 2024
2 parents d0f5a07 + 4ae2a22 commit cd1bf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VirtualHavruta/vh.py
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ def preprocess_topic_names(extraction):
for topic in topic_names:
updated_name = topic.strip()
updated_topic_names.append(updated_name)
if updated_name.lower().startswith('rabbi'):
if updated_name.lower().startswith(('rabbi', 'rebbe')):
alt_name = updated_name[6:].strip()
if alt_name:
updated_topic_names.append(alt_name)
Expand Down

0 comments on commit cd1bf8d

Please sign in to comment.