Taiwan Legal Calculator

•

Provides accurate legal calculations for Taiwan law, serving as a reliable backend for LLM-driven applications and preventing numerical hallucinations.

LLMs often struggle with precise numerical calculations, especially when dealing with complex rules like those found in legal contexts (e.g., leap years, start/end date inclusion, pro-rata calculations). The Taiwan Legal Calculator addresses this by offering a robust, programmatic solution for over 20 types of legal calculations specific to Taiwan law, including interest, depreciation, severance pay, and court fees. Designed as a single-entry-point tool for large language models, it integrates seamlessly via MCP, OpenAPI, and function-calling schemas, ensuring that calculations are performed accurately by code rather than being hallucinated by the model. It prioritizes data integrity by returning specific `needs` for incomplete information instead of guessing, and provides results with calculation steps and legal citations for transparency.

Key Features

01Provides transparent results including calculation steps and legal sources.
020 GitHub stars
03Ensures calculation accuracy using Decimal precision, avoiding intermediate rounding errors.
04Designed not to speculate, returning specific requirements when data is incomplete.
05Offers a single HTTP API endpoint for over 20 Taiwan legal calculations.
06Integrates with LLMs via MCP, OpenAPI specifications, and function-calling schemas.

Use Cases

01Integrating precise legal calculation capabilities into LLM agents and chatbots for Taiwan legal inquiries.
02Developing custom AI-powered legal tools using platforms like Microsoft 365 Copilot or Copilot Studio.
03Assisting legal professionals (judges, lawyers) with accurate numerical computations for case preparation and analysis.