Skip to content

Commit cd61f01

Browse files
committed
tamil: remove_tense_suffix signals if ending removed
This localises the use of found_a_match to a single routine, which seems cleaner and clearer, and which the compiler may be able to turn into a local variable in the future.
1 parent edfe576 commit cd61f01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

algorithms/tamil.sbl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ define remove_vetrumai_urupukal as (
332332
)
333333

334334
define remove_tense_suffixes as (
335-
set found_a_match
336-
repeat ( found_a_match (do remove_tense_suffix) )
335+
repeat remove_tense_suffix
337336
)
338337

338+
// Gives signal t if a tense suffix was removed, signal f otherwise.
339339
define remove_tense_suffix as (
340340
unset found_a_match
341341
has_min_length
@@ -417,6 +417,7 @@ define remove_tense_suffix as (
417417
)
418418
)
419419
do fix_endings
420+
found_a_match
420421
)
421422

422423
define stem as (

0 commit comments

Comments
 (0)