Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework word completion: Start to prepare PrefixNode for dynamic updating #1532

Merged

Conversation

jeremypw
Copy link
Collaborator

@jeremypw jeremypw commented Feb 1, 2025

  • Add a property counting how many times a word occurs in a document (used to remove nodes with zero occurrences)
  • Distinguish node types: ROOT, CHAR, WORD_END. (WORD_END type carries occurrences property)
  • Make tree bi-directional (nodes have parent property)
  • Use Gee.ArrayList instead of GLib.List

@jeremypw
Copy link
Collaborator Author

jeremypw commented Feb 2, 2025

Reviewed scope and construction of properties. Type and character made immutable properties; occurrence count made private member.

@jeremypw jeremypw requested a review from danirabbit February 2, 2025 12:12
@jeremypw jeremypw requested a review from danirabbit February 2, 2025 19:32
@danirabbit danirabbit enabled auto-merge (squash) February 6, 2025 17:44
@danirabbit danirabbit merged commit 857a871 into master Feb 6, 2025
4 of 6 checks passed
@danirabbit danirabbit deleted the jeremypw/rework-word-completion/prep-add-remove-node branch February 6, 2025 17:45
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