Salary calculation system and method based on natural language

By using natural language to write formulas and component design in the compensation calculation system, the problems of low code reuse and high development costs in traditional systems are solved, and higher code reuse and business self-service capabilities are achieved.

CN119558809APending Publication Date: 2025-03-04SUNSHINE PROPERTY & CASUALTY INSURANCE CO
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411483399.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

Traditional compensation computing systems have problems such as low code reuse, high development cost, low business self-service capability and low scalability, resulting in waste of resources, long development cycle and high maintenance costs.

Method used

The compensation calculation system based on natural language is adopted, and the model is designed in a unified architecture through the compensation group components, compensation item components and formula components. The business process call relationship is uniformly scheduled by the model, which supports natural language writing formulas to improve the readability and reusability of the code.

Benefits of technology

It reduces the damage and intrusion of the main functions by business code, improves the reuse and readability of the code, reduces the development and maintenance costs, and enhances the possibility of business self-service configuration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119558809A_ABST
    Figure CN119558809A_ABST
Patent Text Reader

Abstract

The invention provides a salary calculation system and method based on a natural language, the salary calculation system based on the natural language comprises a salary group component, a salary item component and a formula component, the salary group component is used for grouping organization personnel with the same logic; the salary item component is used for determining salary items included by any money acceptor; and the formula component is used for calculating salary. According to the technical scheme, unified architecture design is carried out on the model, unified scheduling is carried out on the business process calling relation through the model, damage and invasion of business codes to main body functions are reduced, similar scenes can be constructed through the same model, and the use scene of the codes is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Regarding salary calculation requirements, the traditional development model is to simply translate the requirements into code for implementation. As time goes by, the system function construction is disorganized, the code is redundant, the business logic is obscure, the code development and communication costs are high, and the reuse and readability are low. There are mainly the following pain points:

[0003] 1) Low code reuse

[0004] The same or similar functions are developed repeatedly without forming components, resulting in a waste of resources.

[0005] 2) High development cost

[0006] The traditional development method is to simply translate requirements into code, which has unclear business semantics and non-standardized standards. This leads to high communication, development, and testing costs and a long development cycle when subsequent maintenance personnel conduct secondary development.

[0007] 3) Low business self-service capabilities

[0008] The traditional implementation method is designed for the technical side, and the levels are unclear from the business perspective, making it difficult to get started with configuration. This leads to ambiguity in the communication between business and technology, and requires technical assistance for basic configuration operations.

[0009] 4) Low scalability

[0010] Due to the low code abstraction capability, similar business scenarios cannot be configured using one model, and the overall process needs to be repeatedly built, which is not conducive to the overall system planning of the enterprise. Summary of the invention

[0011] The present application provides a salary calculation system and method based on natural language, which is used to design a unified architecture for the model. The business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be constructed using the same model to improve the usage scenarios of the code.

[0012] In a first aspect, a salary calculation system based on natural language is provided, comprising: a salary group component, a salary item component and a formula component, wherein:

[0013] The salary group component is used to group organizational personnel with the same logic;

[0014] The remuneration item component is used to determine the remuneration items included in any payee;

[0015] The formula component is used to calculate the salary.

[0016] In the above technical solution, by setting a salary group component, a salary item component and a formula component, the salary group component is used to group organizational personnel with the same logic; the salary item component is used to determine the salary items included in any payee; the formula component is used to calculate the salary; a unified architecture design is performed on the model, and the business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be built using the same model to improve the use scenarios of the code; similar functions are constructed in a componentized manner to improve the reuse of the code and reduce the development cost caused by repeated development of the same function; formula writing is based on the built-in grammar and parsed by the lexical parser. The business can write calculation formulas in natural language, which improves the readability of the code and reduces the subsequent maintenance cost caused by the decrease of information during the code translation process; due to the support of natural language writing, the possibility of self-service configuration of the business is improved, and the business can configure rules according to its own requirements without the need to bother technical personnel.

[0017] In a specific implementation scheme, the formula component is parsed based on a syntax parser and a lexical parser, and the calculation formula is written in a natural language.

[0018] In a specific implementation scheme, organizational personnel in the same group adopt the same salary calculation rules.

[0019] In a specific embodiment, the formula component includes a simple formula and a complex formula.

[0020] In a specific embodiment, the simple formula includes basic formulas of addition, subtraction, multiplication and division.

[0021] In a specific embodiment, the complex formula includes special functions customized on demand.

[0022] In a specific implementation scheme, the formula component supports functional expansion by decision conditions.

[0023] In a specific embodiment, the formula component includes a custom unit, wherein,

[0024] The custom unit is used to customize the semantics of the formula content.

[0025] In a specific implementation scheme, the remuneration item includes a type and a name.

[0026] In a second aspect, a salary calculation method based on natural language is provided, comprising the following steps:

[0027] Use the compensation group component to group organizational personnel with the same logic;

[0028] Use the Compensation Items component to determine the compensation items included in any payee;

[0029] Calculate compensation using formula components.

[0030] In the above technical solution, by setting a salary group component, a salary item component and a formula component, the salary group component is used to group organizational personnel with the same logic; the salary item component is used to determine the salary items included in any payee; the formula component is used to calculate the salary; a unified architecture design is performed on the model, and the business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be built using the same model to improve the use scenarios of the code; similar functions are constructed in a componentized manner to improve the reuse of the code and reduce the development cost caused by repeated development of the same function; formula writing is based on the built-in grammar and parsed by the lexical parser. The business can write calculation formulas in natural language, which improves the readability of the code and reduces the subsequent maintenance cost caused by the decrease of information during the code translation process; due to the support of natural language writing, the possibility of self-service configuration of the business is improved, and the business can configure rules according to its own requirements without the need to bother technical personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A structural block diagram of a salary calculation system based on natural language provided in an embodiment of the present application;

[0032] Figure 2 A schematic diagram of the specific structure of a salary calculation system based on natural language provided in an embodiment of the present application;

[0033] Figure 3 A flowchart of a natural language-based salary calculation solution provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The present application is further described in detail below through the accompanying drawings and embodiments. Through these descriptions, the characteristics and advantages of the present application will become clearer and more specific.

[0035] The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration." Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise noted.

[0036] In addition, the technical features involved in different embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.

[0037] To facilitate understanding of the salary calculation system and method based on natural language provided in the embodiment of the present application, its application scenario is first explained. The salary calculation system and method based on natural language provided in the embodiment of the present application are used to design a unified architecture for the model, and the business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code to the main function. Similar scenarios can be constructed using the same model to improve the use scenario of the code. Regarding salary calculation requirements, the traditional development model is based on the simple translation of requirements into code for implementation. As time goes by, the system function construction is disorganized, the code is redundant, the business logic is obscure, the code development, communication costs are high; reuse, readability and other issues. There are mainly the following pain points: 1) Low code reuse, repeated development of the same and similar functions, no components are formed, resulting in waste of resources. 2) High development cost, the traditional development method is to simply translate the requirements into code, the business semantics are unclear, and the standards are not unified, resulting in high communication, development, and testing costs and long development cycles when subsequent maintenance personnel conduct secondary development. 3) The business self-service capability is low. The traditional implementation method is designed for the technical side. The hierarchy is not clear from the business perspective, and it is difficult to get started with configuration, which leads to ambiguity in the communication between business and technology, and requires technical assistance for basic configuration operations. 4) Low scalability. Because the code abstraction capability is low, similar business scenarios cannot be configured with a set of models, and the overall process needs to be repeatedly built, which is not conducive to the overall system planning of the enterprise. For this reason, the embodiment of the present application provides a salary calculation system and method based on natural language to design a unified architecture for the model. The business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be constructed using the same model to improve the usage scenarios of the code. The following is a detailed description of this with examples in conjunction with specific drawings.

[0038] refer to Figures 1 to 3 , Figure 1 A structural block diagram of a salary calculation system based on natural language provided in an embodiment of the present application; Figure 2 A schematic diagram of the specific structure of a salary calculation system based on natural language provided in an embodiment of the present application; Figure 3 A flowchart of a natural language-based salary calculation solution provided in an embodiment of the present application.

[0039] exist Figure 1 and Figure 2 In the embodiment of the present application, a salary calculation system based on natural language is provided, including: a salary group component, a salary item component and a formula component, wherein:

[0040] The salary group component is used to group organizational personnel with the same logic;

[0041] The remuneration item component is used to determine the remuneration items included in any payee;

[0042] The formula component is used to calculate the salary.

[0043] In the above technical solution, by setting a salary group component, a salary item component and a formula component, the salary group component is used to group organizational personnel with the same logic; the salary item component is used to determine the salary items included in any payee; the formula component is used to calculate the salary; a unified architecture design is performed on the model, and the business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be built using the same model to improve the use scenarios of the code; similar functions are constructed in a componentized manner to improve the reuse of the code and reduce the development cost caused by repeated development of the same function; formula writing is based on the built-in grammar and parsed by the lexical parser. The business can write calculation formulas in natural language, which improves the readability of the code and reduces the subsequent maintenance cost caused by the decrease of information during the code translation process; due to the support of natural language writing, the possibility of self-service configuration of the business is improved, and the business can configure rules according to its own requirements without the need to bother technical personnel.

[0044] In a specific implementation scheme, the formula component is parsed based on a syntax parser and a lexical parser, and the calculation formula is written in a natural language.

[0045] In a specific implementation scheme, organizational personnel in the same group adopt the same salary calculation rules.

[0046] In a specific embodiment, the formula component includes a simple formula and a complex formula.

[0047] In a specific embodiment, the simple formula includes basic formulas of addition, subtraction, multiplication and division.

[0048] In a specific embodiment, the complex formula includes special functions customized on demand.

[0049] In a specific implementation scheme, the formula component supports functional expansion by decision conditions.

[0050] In a specific embodiment, the formula component includes a custom unit, wherein,

[0051] The custom unit is used to customize the semantics of the formula content.

[0052] In a specific implementation scheme, the remuneration item includes a type and a name.

[0053] Specifically, the natural language-based salary calculation system provides a general salary calculation underlying model, which is as follows: the model basic components include salary group, salary item, and formula.

[0054] The salary group component is used to group organizational personnel with the same logic. Personnel in the same group have the same salary calculation rules;

[0055] The salary item components are the salary items that make up a specific payee;

[0056] Salary items are composed of formulas. Formula components can be composed of simple formulas and complex formulas. Simple formulas support basic addition, subtraction, multiplication and division formulas, while complex formulas are special functions customized on demand. At the same time, formula components can be extended by decision conditions. Formula content can be customized with semantics and parsed by the built-in lexical and syntax parsers of the calculation engine, making it easy to write formulas in business language.

[0057] In the above technical solution, a universal salary calculation engine is established, which is applicable to all scenarios within the enterprise that involve the distribution of funds through certain rules. At the same time, the engine has built-in self-developed grammar and lexical parser, and can customize the development of corresponding calculation rules and description methods according to specific needs: a unified architecture design is performed on the model, and the business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be built using the same model to improve the usage scenarios of the code; similar functions are constructed in a componentized manner to improve the reuse of the code and reduce the development cost caused by repeated development of the same function; formula writing is based on the built-in grammar and lexical parser for parsing. The business can write calculation formulas in natural language, which improves the readability of the code and reduces the later maintenance costs caused by the decrease of information during the code translation process; due to the support for natural language writing, the possibility of self-service configuration of the business is improved, and the business can configure rules according to its own requirements without the need to bother technical personnel.

[0058] exist Figure 3 In the embodiment of the present application, a salary calculation method based on natural language is provided, comprising the following steps:

[0059] Use the compensation group component to group organizational personnel with the same logic;

[0060] Use the Compensation Items component to determine the compensation items included in any payee;

[0061] Calculate compensation using formula components.

[0062] In the above technical solution, by setting a salary group component, a salary item component and a formula component, the salary group component is used to group organizational personnel with the same logic; the salary item component is used to determine the salary items included in any payee; the formula component is used to calculate the salary; a unified architecture design is performed on the model, and the business process call relationship is uniformly scheduled by the model to reduce the damage and intrusion of the business code on the main function. Similar scenarios can be built using the same model to improve the use scenarios of the code; similar functions are constructed in a componentized manner to improve the reuse of the code and reduce the development cost caused by repeated development of the same function; formula writing is based on the built-in grammar and parsed by the lexical parser. The business can write calculation formulas in natural language, which improves the readability of the code and reduces the subsequent maintenance cost caused by the decrease of information during the code translation process; due to the support of natural language writing, the possibility of self-service configuration of the business is improved, and the business can configure rules according to its own requirements without the need to bother technical personnel.

[0063] Those skilled in the art will appreciate that the present application may be implemented as a system, method or computer program product.

[0064] Therefore, the present disclosure may be specifically implemented in the following forms, namely: it may be completely hardware, it may be completely software (including firmware, resident software, microcode, etc.), or it may be a combination of hardware and software, generally referred to herein as a "circuit", "module" or "system". In addition, in some embodiments, the present application may also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable medium may contain computer-readable program code.

[0065] Any combination of one or more computer-readable media can be used. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0066] Although the embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art can change, modify, replace and modify the above embodiments within the scope of the present application. On this basis, a variety of replacements and improvements can be made to the present application, all of which fall within the scope of protection of the present application.

Claims

1. A salary calculation system based on natural language, characterized in that: include: Compensation group component, compensation item component and formula component, among which, The salary group component is used to group organizational personnel with the same logic; The remuneration item component is used to determine the remuneration items included in any payee; The formula component is used to calculate the salary.

2. The salary calculation system based on natural language according to claim 1, characterized in that: The formula component is parsed based on a syntax parser and a lexical parser, and the calculation formula is written in a natural language.

3. The salary calculation system based on natural language according to claim 2, characterized in that: Organizational personnel in the same group use the same salary calculation rules.

4. The salary calculation system based on natural language according to claim 3, characterized in that: The formula components include simple formulas and complex formulas.

5. The salary calculation system based on natural language according to claim 4, characterized in that: The simple formulas include basic addition, subtraction, multiplication and division formulas.

6. The salary calculation system based on natural language according to claim 5, characterized in that: The complex formula includes special functions customized on demand.

7. The salary calculation system based on natural language according to claim 6, characterized in that: The formula component supports functional expansion by decision conditions.

8. The salary calculation system based on natural language according to claim 7, characterized in that: The formula component includes a custom cell, wherein, The custom unit is used to customize the semantics of the formula content.

9. The salary calculation system based on natural language according to claim 8, characterized in that: The remuneration item includes type and name.

10. A salary calculation method based on natural language, characterized in that: The following steps are involved: Use the compensation group component to group organizational personnel with the same logic; Use the Compensation Items component to determine the compensation items included in any payee; Calculate compensation using formula components.