The large photo album has extra charges on delivery.
The adjective large may indicate an attribute size of the photo.
Red car
The adjective red may indicate an attribute colour of the photo.
How can I write a Java program to implement the above job (How do we know the root for large, big is size) and how we know the root for the color?