Open Issues Need Help
View All on GitHubAI Summary: Enhance the Cooklang-py parser to ensure complete mapping of singular and plural forms for all units of measurement. The current unit mapping is incomplete; the task requires adding missing singular and plural forms, prioritizing singular forms in the mapping to ensure correct reverse mapping.
AI Summary: Add a new method to the `Step` class in the cooklang-py Python library to generate a formatted string representation. This method should allow control over the formatting of `Cookware`, `Ingredient`, and `Timing` objects within the step, using existing formatting capabilities of `BaseObj` descendants. The task includes writing unit tests and documentation for the new method.
AI Summary: Implement basic arithmetic operations (+, -, *, /) for `Quantity` objects in the cooklang-py library. These operations should support numeric types (int, float, Decimal, Fraction) and other `Quantity` objects with matching units. Error handling (TypeError) and unit tests are required, along with updated documentation.
AI Summary: Implement the reversed addition (`radd`) method for the `BaseObj` and `Quantity` classes in the `cooklang-py` Python library. This should allow string concatenation using the `+` operator where the string is on the left-hand side, raising a `TypeError` if the left-hand operand is not a string. The implementation should only support string concatenation.
AI Summary: Update the documentation for the `cooklang-py` Python library to correct the default values for the `quantity` attribute in `Ingredient` and `Cookware` objects. The current documentation incorrectly states the defaults as 'some' and 1, respectively; they should be updated to reflect the correct default of `None`.
AI Summary: The task is to modify the Cooklang parser (cooklang-py) to correctly handle fractions with whole numbers in ingredient quantities. This involves improving the parser's whitespace handling to distinguish between '1 3/4' and '13/4', and ensuring that such fractions are represented as strings ('1 3/4') rather than improper fractions ('7/4'). New test cases must be added to verify the fix.
AI Summary: Refactor the Cooklang Python parser to replace the `long_str` method with a more flexible `__format__` method in the `BaseObj` class and its subclasses. This involves implementing various formatting options (short vs. long quantity units) and updating the `Recipe` and `Step` classes to utilize the new formatting, along with comprehensive unit test updates.
AI Summary: Implement the `__add__` method for the `Quantity` class in the cooklang-py Python library. This method should allow addition of numeric values or other `Quantity` objects, handling unit consistency and potentially unit conversions. Success and failure cases need to be tested, and the documentation updated.
AI Summary: Externalize the Cooklang-py documentation by converting the markdown files to a website format during the build process, publishing the website, and updating the README.md with links to the new documentation. This requires handling issue #8 first, which is assumed to be related to initial documentation creation.