Skip to content

[ERROR]: Urgent - Bug in saving manual corrections in SemNetCleaner #30

Open

Description

@Umberto0300

Dear Professor Christensen,
I am currently using SemNetCleaner and SemNeT for a semantic network analysis, following your tutorial. I am writing because I encountered a significant issue when saving the results of the cleaning procedure in SemNetCleaner. During the interactive cleaning process in the platform, I manually correct several responses and add some terms to the dictionary. However, I have noticed that these decisions do not seem to be preserved.
For example, some responses consist of multiple words that represent a single concept (e.g., French window or night table). Although I explicitly indicate during cleaning that these expressions should be treated as a single response, they appear as two separate nodes in the resulting semantic network.

Best regards,
Umberto Domanti

R, SemNetCleaner, and SemNetDictionaries versions:

  • R version 4.4.2
  • SemNetCleaner: 1.3.7
  • SemNetDictionaries: 0.2.1

Operating System:

  • OS: Mac
  • Version macOS 27.0.1.

Activity

  1. added
    bug
    on Oct 13, 2026
  2. AlexChristensen commented on Oct 13, 2026

    @AlexChristensen
    Owner

    Hi @Umberto0300,

    Moving your message from {SemNeT} to this chain:

    Dear Professor Christensen,
    Thank you for your reply.
    I have opened a new issue on the SemNetCleaner GitHub page, as suggested. Is there any way to resolve this issue soon? It significantly affects the cleaning process.
    Thank you again for your help!
    Best regards,
    Umberto Domanti

    If you can provide a reproducible example of what you're seeing with the error, that would speed up the process

  3. added a commit that references this issue on Oct 15, 2026
  4. AlexChristensen commented on Oct 15, 2026

    @AlexChristensen
    Owner

    Hi @Umberto0300,

    For verbal fluency data, textcleaner() separates multi-word responses into single words by default (keepStrings = FALSE), so "french window" becomes "french" and "window" no matter how you answer in the menu. To keep them together, set keepStrings = TRUE:

    clean <- textcleaner(data = my_data, dictionary = "general", keepStrings = TRUE)

    With keepStrings = TRUE, choosing KEEP ORIGINAL or TYPE MY OWN STRING (and responses already in the dictionary) keeps the phrase as one response. I tested this with data containing "french window" and "night table": each stays one response in the cleaned data and is one node in the binary matrix that goes on to SemNeT. With the default, they come out as separate words.

    Please try again with the latest GitHub package:

    devtools::install_github("AlexChristensen/SemNetCleaner")
    

    Also, if you plan to use {SemNeT}, then please download the most up-to-date version from CRAN (version 2.1.0). See AlexChristensen/SemNeT#16

  5. Umberto0300 commented on Oct 15, 2026

    @Umberto0300
    Author

    Dear @AlexChristensen, thank you very much for your reply and for looking into this issue.
    I would just like to clarify that the problem I was referring to occurs in the interactive platform that opens right after the manual spell-check process, where I need to correct responses by changing the entries in the FROM, TO_1, and TO_2 fields.

    My concern is that the manual corrections I make in this interface (from "french" "window" to "french window") are not preserved correctly in the final output. For example, even when I manually correct a multi-word expression to keep it as a single response, it subsequently appears as two separate nodes in the final semantic network. Thank you also for explaining the keepStrings = TRUE option and for updating the packages.

    Best regards,
    Umberto Domanti

  6. added a commit that references this issue on Oct 15, 2026
  7. AlexChristensen commented on Oct 15, 2026

    @AlexChristensen
    Owner

    Aha. Thank you for the clarification.

    I was able to reproduce the issue. I just pushed a fix to GitHub that worked on my end. You can try to previous install code to test out the latest GitHub version

  8. Umberto0300 commented on Oct 15, 2026

    @Umberto0300
    Author

    Hi @AlexChristensen,

    Thank you very much for your quick response and for fixing the issue! I will install the latest GitHub version and test it with my data, while also using keepStrings = TRUE. Thank you again for your help! I let you know!

    Best regards,
    Umberto Domanti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions