On Tue, Oct 11, 2011 at 1:21 AM, Steven D'Aprano wrote:
> Wayne Werner wrote:
>
>> 2011/10/7 Emad Nawfal (عمـ نوفل ـاد)
>>
>> I want to re-structure English so that the adjectives appear after the
>>> nouns, instead of before.
>>> If I have a sentence like:
>>>
>>> The tall man plays well
>>> I
Wayne Werner wrote:
2011/10/7 Emad Nawfal (عمـ نوفل ـاد)
I want to re-structure English so that the adjectives appear after the
nouns, instead of before.
If I have a sentence like:
The tall man plays well
I need to change it to
The man tall plays well
Others have offered plenty of help, th
2011/10/7 Emad Nawfal (عمـ نوفل ـاد)
> I want to re-structure English so that the adjectives appear after the
> nouns, instead of before.
> If I have a sentence like:
>
> The tall man plays well
> I need to change it to
> The man tall plays well
>
Others have offered plenty of help, though I not
On Sat, Oct 8, 2011 at 12:34 PM, Andreas Perstinger <
andreas.perstin...@gmx.net> wrote:
> On 2011-10-08 11:11, Andreas Perstinger wrote:
>
>> def swap(sentence):
>> s = sentence.split()
>> for i in reversed(range(len(s))):
>> if s[i].endswith("/N") and s[i-1].endswith("/ADJ"):
On 2011-10-08 11:11, Andreas Perstinger wrote:
def swap(sentence):
s = sentence.split()
for i in reversed(range(len(s))):
if s[i].endswith("/N") and s[i-1].endswith("/ADJ"):
s[i], s[i-1] = s[i-1], s[i]
return s
Oops, noticed a little bug:
The for-loop sh
On Sat, Oct 8, 2011 at 12:11 PM, Andreas Perstinger <
andreas.perstin...@gmx.net> wrote:
> On 2011-10-08 09:53, Peter Otten wrote:
>
>> Emad Nawfal (عمـ نوفل ـاد) wrote:
>>
>>> Here is the function as I used it, and it works fine:
>>>
>>> def swap(sentence):
>>>buffer = []
>>>adjectives
On 2011-10-08 09:53, Peter Otten wrote:
Emad Nawfal (عمـ نوفل ـاد) wrote:
Here is the function as I used it, and it works fine:
def swap(sentence):
buffer = []
adjectives = []
for word in sentence.split():
if word.endswith('/ADJ'):
adjectives.append(word)
Emad Nawfal (عمـ نوفل ـاد) wrote:
> Here is the function as I used it, and it works fine:
>
> def swap(sentence):
>buffer = []
>adjectives = []
>for word in sentence.split():
>if word.endswith('/ADJ'):
>adjectives.append(word)
>elif word.endswith('/N'):
>
2011/10/8 Emad Nawfal (عمـ نوفل ـاد)
> Hi Steven ans Tutors,
> Thanks for the code.
> Actually I'm not a student at all. I'm an assistant professor of Arabic at
> Suez Canal University in Egypt. I would appreciate more contributions from
> you and the other list members.
>
>
> 2011/10/8 Steven D'
Hi Steven ans Tutors,
Thanks for the code.
Actually I'm not a student at all. I'm an assistant professor of Arabic at
Suez Canal University in Egypt. I would appreciate more contributions from
you and the other list members.
2011/10/8 Steven D'Aprano
> Emad Nawfal (عمـ نوفل ـاد) wrote:
>
>> Hell
Emad Nawfal (عمـ نوفل ـاد) wrote:
Hello Tutors,
It's been quite some time since I last posted something here, and now I'm
back with a question:
I want to re-structure English so that the adjectives appear after the
nouns, instead of before.
If I have a sentence like:
The tall man plays well
I n
Hello Tutors,
It's been quite some time since I last posted something here, and now I'm
back with a question:
I want to re-structure English so that the adjectives appear after the
nouns, instead of before.
If I have a sentence like:
The tall man plays well
I need to change it to
The man tall pla
12 matches
Mail list logo