Skip to content

Conversation

@zxq82lm
Copy link

@zxq82lm zxq82lm commented Nov 15, 2025

PR objective

Address this issue: #200

Fix

Whenever an n-typed node has children, _find_head_noun() picks the actual head noun ("programmer" in the example below). We then use that noun as the cursor for the rest of the build, so modifiers attach to the correct wire.

Testing

Unit test

python -m pytest tests/test_discocirc_reader.py

Sentence from the issue

"John creates a complicated application. He is a very talented programmer".

Before:
image

After:
image

@zxq82lm zxq82lm marked this pull request as ready for review November 15, 2025 21:59
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.

1 participant