8000 Refactor: Extract core analysis logic into AnalyzeString() by whothefluff · Pull Request #5 · Alatius/morpheus · GitHub
[go: up one dir, main page]

Skip to content

Refactor: Extract core analysis logic into AnalyzeString() - #5

Merged
Alatius merged 1 commit into
Alatius:masterfrom
whothefluff:1-refactor
Jul 30, 2026
Merged

Alatius merged 1 commit into
Alatius:masterfrom
whothefluff:1-refactor

Conversation

@whothefluff
@whothefluff whothefluff commented Jul 21, 2026 •
Copy link
Copy Markdown

First time contributing here. I use your macronizer for a Latin reader app I'm building and wanted to build on Morpheus directly rather than patching around it, so figured I'd try to get useful bits upstream instead of just forking quietly.

This pulls the core word-analysis logic out of checkstring() into a new function, AnalyzeString(char *string, PrntFlags prntflags), which builds and returns the gk_word*. checkstring() now just calls it and keeps the printing/lemma-count decisions.

No behavior is changed, this is a pure extraction (no logic was added, removed, or reordered).

I can easily add XML output to the tool and this extraction makes it possible to use the same same analysis pipeline (AnalyzeString, SortAnals, GoodAnals) without duplicating it.

Small, mechanical diff. Happy to adjust naming/style if you'd prefer something different.

@Alatius
Alatius merged commit 8839e02 into Alatius:master Jul 30, 2026
@whothefluff
whothefluff deleted the 1-refactor branch September 1, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0