clips / clips/pattern

How to use the conjugate function with variables

Open
#148 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.9k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Hello,
i'm trying to use the conjugate function in spanish, i have an array with the adverb time so i want to do this.

palabras = [[]]
palabras[0].append("Ayer")
palabras[0].append("PAST")
palabras.append([])
palabras[1].append("Yo")
palabras[1].append("SG")

print conjugate('correr', palabras[0][1], 1, SG )

When i run the code i just get None, when i replace palabras[][] with PAST it works and shows "corría". I think it can be for the String data type, when i use print conjugate('correr',"PAST", 1, SG ) it also does not work, How can i make this work?

Hope you can help me!!!
Have a good day.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the literal "PAST" call with palabras[0][1] and inspect the value passed as SG in the example. Reproduce both calls in the project environment and determine why the variable-based call returns None; no source file or test is identified in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.