comp.lang.ada
 help / color / mirror / Atom feed
From: "James S. Rogers" <jimmaureenrogers@worldnet.att.net>
Subject: Re: Hi, I'm new to ADA
Date: Fri, 07 Feb 2003 17:31:25 GMT
Date: 2003-02-07T17:31:25+00:00	[thread overview]
Message-ID: <N3S0a.25229$rq4.1907708@bgtnsc05-news.ops.worldnet.att.net> (raw)
In-Reply-To: 3E43DF55.DC92A8E8@bton.ac.uk

"Paul Gregory" <pg16@bton.ac.uk> wrote in message
news:3E43DF55.DC92A8E8@bton.ac.uk...
> I'm a complete novice as all you guys once were in terms of ADA and I've
>
> been given a small school project to do. I'm sure as a novice you
> experienced many frustrations and difficulties along the way !
>
> As you people are probably the best people to ask I was wondering if any
> of you could give me any tips as to how
> to go about the following:
>
> ---------------------------------------------------------
> ---------------------------------------------------------
> The task
>
> You are invited to design and implement a translation program which will
>
> take an English sentence and translate it into French (and optionally
> translate from French
> to English).
>
> Your program will use a simple dictionary containing the following
> words:
>
>                                                        English
>                                                               French
>                                                        big
>                                                               grand
>                                                        black
>                                                               noir
>                                                        cat
>                                                               chat
>                                                        dog
>                                                               chien
>                                                        is
>                                                               est
>                                                        small
>                                                               petit
>                                                        the
>                                                               le
>                                                        white
>                                                               blanc
>
>
> Example 1
>
> Do you wish to add words to the dictionary?: N
>
> Please enter a sentence:
> The cat is white.
>
> The French translation of your sentence is:
> Le chat est blanc.
>
> Example 2
>
> Do you wish to add words to the dictionary?: N
>
> Please enter a sentence:
> The cat is dead.
>
> I cannot translate that sentence.
>
> Example 3
>
> Do you wish to add words to the dictionary?: Y
> English word: horse
> Equivalent French word: cheval
>
> Do you wish to add more words?: N
>
> Please enter a sentence:
> Le cheval est grand.
>
> The English translation of your sentence is:
> The horse is big.
>
> --------------------------------------------------------------------------
--
>
> ----------------------------------------
> I know you all have far more important things to be getting on with but
> any
> advice would be brilliant !

It appears from your description that you are translating the
words, not the entire language syntax. This can be important to
because it helps define the complexity of your assignment.
A translation of words only will involve a simple look-up and
substitution of words. A translation of syntax will account for
different word order, or contextual evaluation of phrases which
lead to different idiomatic expressions.

You need to think about how to design a two-way look up table
of words. You also need to think about how you will identify
the language of the input sentence so that you will perform the
correct translation. This can be complicated by the fact that
English contains some French words, and modern French
contains some English words.

Jim Rogers





  reply	other threads:[~2003-02-07 17:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 16:31 Hi, I'm new to ADA Paul Gregory
2003-02-07 17:31 ` James S. Rogers [this message]
2003-02-07 17:40   ` Vinzent Hoefler
2003-02-09  0:59     ` AG
2003-02-08  4:52       ` sk
2003-02-09  5:35         ` AG
2003-02-08 22:12           ` Avec son chapeau à la con (Was: Hi, I'm new to ADA) Ludovic Brenta
2003-02-09  6:37   ` Hi, I'm new to ADA Robert I. Eachus
2003-02-07 18:11 ` Preben Randhol
2003-02-07 18:37   ` Vinzent Hoefler
2003-02-08 10:25     ` Preben Randhol
2003-02-09  1:06   ` AG
2003-02-08 15:42     ` James S. Rogers
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox