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

Support for automatic category classification #120

Open
tomer-porat opened this issue Mar 9, 2023 · 1 comment
Open

Support for automatic category classification #120

tomer-porat opened this issue Mar 9, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tomer-porat
Copy link

tomer-porat commented Mar 9, 2023

I have been using your project for some time now and find it to be a great tool. However, I was wondering if there are any plans to support automatic category classification similar to the caspion project?
If not, do you have any suggestions for alternative solutions that could achieve similar results?

Automatic category classification would greatly enhance the usability of the project, as it would allow users to organize and sort their content easily. It would also save time and effort that would otherwise be spent manually categorizing items.

@daniel-hauser
Copy link
Owner

daniel-hauser commented Mar 9, 2023

I worked on it for a while, but stopped since I wanted the categories to be dynamically calculated and not frozen in time.
The reason I need it is because sometime I rename a category or move a business between categories.

The solution for me is to have a custom formula in the excel file that finds a category if the config (mine is longer of cours) that will best match the memo and description of the transaction

const config = {
  defaultCategory: "אחר/ללא סיווג",
  categories: {
    "מגורים/שכירות": { contains: ["שכירות"], eq: ["שיק//דמי שכירות"] },
    "מגורים/ועד בית": { contains: ["ועד בית"], eq: ["שיק//ועד בית"] },
    "חשבונות/גז": { contains: ["מרכז הגז"] },
    "חשבונות/תקשורת ומחשוב": {
      eq: ["012 MOBILE פרטנר" ],
      contains: ["NETFLIX", "SPOTIFY"],
    },
    "חשבונות/חשמל": {
      eq: ["חב' חשמל מוקד אזורי", "מוקד טלפוני חשמל"],
      startsWith: ["חברת חשמל"],
      contains: ["חשמל בהוראת קבע"],
    },
  }
}

I will be happy to collaborate and think how to integrate into moneyman

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants